38.4 MB
/srv/reproducible-results/rbuild-debian/r-b-build.ZF97ctvn/b1/rustc_1.83.0+dfsg1-1_amd64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.ZF97ctvn/b2/rustc_1.83.0+dfsg1-1_amd64.changes
2.1 KB
Files
    
Offset 1, 20 lines modifiedOffset 1, 20 lines modified
  
1 ·c29c778ed91bd3f4fa632e0e74f0507a·72090168·debug·optional·cargo-dbgsym_1.83.0+dfsg1-1_amd64.deb1 ·c29c778ed91bd3f4fa632e0e74f0507a·72090168·debug·optional·cargo-dbgsym_1.83.0+dfsg1-1_amd64.deb
2 ·4b6983a1811ce0151ba1aa655dd733b3·4309128·doc·optional·cargo-doc_1.83.0+dfsg1-1_all.deb2 ·64b652610b06ccec3a747897f6c1b204·4309348·doc·optional·cargo-doc_1.83.0+dfsg1-1_all.deb
3 ·f3faa0815b723aacebe9a4300381a43c·6208016·devel·optional·cargo_1.83.0+dfsg1-1_amd64.deb3 ·f3faa0815b723aacebe9a4300381a43c·6208016·devel·optional·cargo_1.83.0+dfsg1-1_amd64.deb
4 ·93ca23253f0e08278b46c4b418461ceb·265907436·debug·optional·libstd-rust-1.83-dbgsym_1.83.0+dfsg1-1_amd64.deb4 ·93ca23253f0e08278b46c4b418461ceb·265907436·debug·optional·libstd-rust-1.83-dbgsym_1.83.0+dfsg1-1_amd64.deb
5 ·b7d0ae05bc5885d32cc9f22710d9b720·19396008·libs·optional·libstd-rust-1.83_1.83.0+dfsg1-1_amd64.deb5 ·b7d0ae05bc5885d32cc9f22710d9b720·19396008·libs·optional·libstd-rust-1.83_1.83.0+dfsg1-1_amd64.deb
6 ·83ec025906fb5073052c1ac8ad2147d5·121124628·libdevel·optional·libstd-rust-dev-wasm32_1.83.0+dfsg1-1_all.deb6 ·83ec025906fb5073052c1ac8ad2147d5·121124628·libdevel·optional·libstd-rust-dev-wasm32_1.83.0+dfsg1-1_all.deb
7 ·c9c272d9c4aea73a9e0f15c0669d8e5e·43617732·libdevel·optional·libstd-rust-dev-windows_1.83.0+dfsg1-1_amd64.deb7 ·1540d0250a1bd5eb380e5a94259784fb·43622568·libdevel·optional·libstd-rust-dev-windows_1.83.0+dfsg1-1_amd64.deb
8 ·5682dbca6a973c6bef4f9e907d071859·38654988·libdevel·optional·libstd-rust-dev_1.83.0+dfsg1-1_amd64.deb8 ·5682dbca6a973c6bef4f9e907d071859·38654988·libdevel·optional·libstd-rust-dev_1.83.0+dfsg1-1_amd64.deb
9 ·1c03bfc5ddee21984d2424b4a499a192·237312·devel·optional·rust-all_1.83.0+dfsg1-1_all.deb9 ·1c03bfc5ddee21984d2424b4a499a192·237312·devel·optional·rust-all_1.83.0+dfsg1-1_all.deb
10 ·3dd7b9f3c5a33809baa28b975715354c·59965336·debug·optional·rust-clippy-dbgsym_1.83.0+dfsg1-1_amd64.deb10 ·3dd7b9f3c5a33809baa28b975715354c·59965336·debug·optional·rust-clippy-dbgsym_1.83.0+dfsg1-1_amd64.deb
11 ·a3762440ac21cab13df59e4e5ebc9a78·3297264·devel·optional·rust-clippy_1.83.0+dfsg1-1_amd64.deb11 ·a3762440ac21cab13df59e4e5ebc9a78·3297264·devel·optional·rust-clippy_1.83.0+dfsg1-1_amd64.deb
12 ·dec7be8f582aaf74e5cd59441909aef4·22223036·doc·optional·rust-doc_1.83.0+dfsg1-1_all.deb12 ·49a772ebdfa678286ef4fe8409742d42·22073860·doc·optional·rust-doc_1.83.0+dfsg1-1_all.deb
13 ·60e3968ef3498034bc3f64056a8a7294·243016·devel·optional·rust-gdb_1.83.0+dfsg1-1_all.deb13 ·60e3968ef3498034bc3f64056a8a7294·243016·devel·optional·rust-gdb_1.83.0+dfsg1-1_all.deb
14 ·11fb39af30be7dbad349585a186313bc·243768·devel·optional·rust-lldb_1.83.0+dfsg1-1_all.deb14 ·11fb39af30be7dbad349585a186313bc·243768·devel·optional·rust-lldb_1.83.0+dfsg1-1_all.deb
15 ·f3fc176b7109b9a419b055a26c1a9c7f·1712880·devel·optional·rust-llvm_1.83.0+dfsg1-1_amd64.deb15 ·f3fc176b7109b9a419b055a26c1a9c7f·1712880·devel·optional·rust-llvm_1.83.0+dfsg1-1_amd64.deb
16 ·ee5a3aed8c19a06659b4af89c954988a·46522292·devel·optional·rust-src_1.83.0+dfsg1-1_all.deb16 ·ee5a3aed8c19a06659b4af89c954988a·46522292·devel·optional·rust-src_1.83.0+dfsg1-1_all.deb
17 ·67f763d52d2585df3af4250d41049c82·36425672·debug·optional·rustc-dbgsym_1.83.0+dfsg1-1_amd64.deb17 ·67f763d52d2585df3af4250d41049c82·36425672·debug·optional·rustc-dbgsym_1.83.0+dfsg1-1_amd64.deb
18 ·3dbe75ac6c875230849f6519325b75d0·3767164·devel·optional·rustc_1.83.0+dfsg1-1_amd64.deb18 ·3dbe75ac6c875230849f6519325b75d0·3767164·devel·optional·rustc_1.83.0+dfsg1-1_amd64.deb
19 ·089bb35fc6cb9b9b98c5e64ab1bb7144·24135700·debug·optional·rustfmt-dbgsym_1.83.0+dfsg1-1_amd64.deb19 ·089bb35fc6cb9b9b98c5e64ab1bb7144·24135700·debug·optional·rustfmt-dbgsym_1.83.0+dfsg1-1_amd64.deb
9.36 KB
cargo-doc_1.83.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·2024-12-04·17:07:54.000000·debian-binary1 -rw-r--r--···0········0········0········4·2024-12-04·17:07:54.000000·debian-binary
2 -rw-r--r--···0········0········0····74780·2024-12-04·17:07:54.000000·control.tar.xz2 -rw-r--r--···0········0········0····74796·2024-12-04·17:07:54.000000·control.tar.xz
3 -rw-r--r--···0········0········0··4234156·2024-12-04·17:07:54.000000·data.tar.xz3 -rw-r--r--···0········0········0··4234360·2024-12-04·17:07:54.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.76 KB
data.tar.xz
8.74 KB
data.tar
2.23 KB
file list
    
Offset 2745, 15 lines modifiedOffset 2745, 15 lines modified
2745 -rw-r--r--···0·root·········(0)·root·········(0)····35914·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/crates_io/struct.Registry.html2745 -rw-r--r--···0·root·········(0)·root·········(0)····35914·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/crates_io/struct.Registry.html
2746 -rw-r--r--···0·root·········(0)·root·········(0)····22990·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/crates_io/struct.TotalCrates.html2746 -rw-r--r--···0·root·········(0)·root·········(0)····22990·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/crates_io/struct.TotalCrates.html
2747 -rw-r--r--···0·root·········(0)·root·········(0)····25438·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/crates_io/struct.User.html2747 -rw-r--r--···0·root·········(0)·root·········(0)····25438·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/crates_io/struct.User.html
2748 -rw-r--r--···0·root·········(0)·root·········(0)····22944·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/crates_io/struct.Users.html2748 -rw-r--r--···0·root·········(0)·root·········(0)····22944·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/crates_io/struct.Users.html
2749 -rw-r--r--···0·root·········(0)·root·········(0)····21933·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/crates_io/struct.Warnings.html2749 -rw-r--r--···0·root·········(0)·root·········(0)····21933·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/crates_io/struct.Warnings.html
2750 -rw-r--r--···0·root·········(0)·root·········(0)·····4964·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/crates_io/type.Result.html2750 -rw-r--r--···0·root·········(0)·root·········(0)·····4964·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/crates_io/type.Result.html
2751 -rw-r--r--···0·root·········(0)·root·········(0)·····2991·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/help.html2751 -rw-r--r--···0·root·········(0)·root·········(0)·····2991·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/help.html
2752 -rw-r--r--···0·root·········(0)·root·········(0)·····3266·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/index.html2752 -rw-r--r--···0·root·········(0)·root·········(0)·····3273·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/index.html
2753 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/2753 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/
2754 -rw-r--r--···0·root·········(0)·root·········(0)·····5349·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/all.html2754 -rw-r--r--···0·root·········(0)·root·········(0)·····5349·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/all.html
2755 -rw-r--r--···0·root·········(0)·root·········(0)····28713·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/enum.Format.html2755 -rw-r--r--···0·root·········(0)·root·········(0)····28713·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/enum.Format.html
2756 -rw-r--r--···0·root·········(0)·root·········(0)·····4171·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/fn.convert.html2756 -rw-r--r--···0·root·········(0)·root·········(0)·····4171·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/fn.convert.html
2757 -rw-r--r--···0·root·········(0)·root·········(0)·····3399·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/fn.extract_section.html2757 -rw-r--r--···0·root·········(0)·root·········(0)·····3399·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/fn.extract_section.html
2758 -rw-r--r--···0·root·········(0)·root·········(0)·····3207·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/fn.join_url.html2758 -rw-r--r--···0·root·········(0)·root·········(0)·····3207·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/fn.join_url.html
2759 -rw-r--r--···0·root·········(0)·root·········(0)·····4043·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/fn.md_parser.html2759 -rw-r--r--···0·root·········(0)·root·········(0)·····4043·2024-12-04·17:07:54.000000·./usr/share/doc/cargo/reference/mdman/fn.md_parser.html
6.49 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="./static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="./static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="./static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="./"·data-static-root-path="./static.files/"·data-current-crate="rustfix"·data-themes=""·data-resource-suffix=""·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="./static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="./static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="./static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="./static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="./static.files/favicon-2c020d218678b618.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-151179464ae7ed46.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-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="./index.html">Rustdoc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623·2024-11-26)·(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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="./static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="./static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="./static.files/rustdoc-545097bd80942bc8.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.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="./static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="./static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="./static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="./static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="./static.files/favicon-2c020d218678b618.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-151179464ae7ed46.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-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="./index.html">Rustdoc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623·2024-11-26)·(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":2565,"fragment_lengths":[45,67,63,67,71,55,71,53,45,49]}-->2 <!--{"start":2572,"fragment_lengths":[45,67,63,67,71,55,71,53,45,49]}-->
223 KB
libstd-rust-dev-windows_1.83.0+dfsg1-1_amd64.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2024-12-04·17:07:54.000000·debian-binary1 -rw-r--r--···0········0········0········4·2024-12-04·17:07:54.000000·debian-binary
2 -rw-r--r--···0········0········0·····2280·2024-12-04·17:07:54.000000·control.tar.xz2 -rw-r--r--···0········0········0·····2284·2024-12-04·17:07:54.000000·control.tar.xz
3 -rw-r--r--···0········0········0·43615260·2024-12-04·17:07:54.000000·data.tar.xz3 -rw-r--r--···0········0········0·43620092·2024-12-04·17:07:54.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
222 KB
data.tar.xz
222 KB
data.tar
14.1 KB
./usr/lib/rustlib/x86_64-pc-windows-gnu/lib/libstd-79f5311fdc939639.rlib
6.06 KB
nm -s {}
Max HTML report size reached
886 B
bcryptprimitives.dllt.o
    
Offset 30, 11 lines modifiedOffset 30, 11 lines modified
000001d0:·0000·0000·0000·0000·0000·0000·0000·0000··................000001d0:·0000·0000·0000·0000·0000·0000·0000·0000··................
000001e0:·2e69·6461·7461·2435·0000·0000·0500·0000··.idata$5........000001e0:·2e69·6461·7461·2435·0000·0000·0500·0000··.idata$5........
000001f0:·0301·0800·0000·0000·0000·0000·0000·0000··................000001f0:·0301·0800·0000·0000·0000·0000·0000·0000··................
00000200:·0000·0000·2e69·6461·7461·2437·0000·0000··.....idata$7....00000200:·0000·0000·2e69·6461·7461·2437·0000·0000··.....idata$7....
00000210:·0600·0000·0301·1500·0000·0000·0000·0000··................00000210:·0600·0000·0301·1500·0000·0000·0000·0000··................
00000220:·0000·0000·0000·0000·0000·0000·0400·0000··................00000220:·0000·0000·0000·0000·0000·0000·0400·0000··................
00000230:·0000·0000·0600·0000·0200·3e00·0000·5f5f··..........>...__00000230:·0000·0000·0600·0000·0200·3e00·0000·5f5f··..........>...__
00000240:·5f74·6d70·5f72·7573·7463·724c·4346·3568··_tmp_rustcrLCF5h00000240:·5f74·6d70·5f72·7573·7463·4f77·5377·6a44··_tmp_rustcOwSwjD
00000250:·5f62·6372·7970·7470·7269·6d69·7469·7665··_bcryptprimitive00000250:·5f62·6372·7970·7470·7269·6d69·7469·7665··_bcryptprimitive
00000260:·735f·646c·6c5f·696d·706f·7274·735f·6c69··s_dll_imports_li00000260:·735f·646c·6c5f·696d·706f·7274·735f·6c69··s_dll_imports_li
00000270:·625f·696e·616d·6500······················b_iname.00000270:·625f·696e·616d·6500······················b_iname.
1.21 KB
bcryptprimitives.dllh.o
Max HTML report size reached
833 B
bcryptprimitives.dlls00000.o
    
Offset 32, 10 lines modifiedOffset 32, 10 lines modified
000001f0:·7461·2436·0000·0000·0700·0000·0300·0000··ta$6............000001f0:·7461·2436·0000·0000·0700·0000·0300·0000··ta$6............
00000200:·0000·0400·0000·0000·0000·0100·0000·0200··................00000200:·0000·0400·0000·0000·0000·0100·0000·0200··................
00000210:·0000·0000·1000·0000·0000·0000·0500·0000··................00000210:·0000·0000·1000·0000·0000·0000·0500·0000··................
00000220:·0200·0000·0000·2200·0000·0000·0000·0000··......".........00000220:·0200·0000·0000·2200·0000·0000·0000·0000··......".........
00000230:·0000·0200·5a00·0000·5072·6f63·6573·7350··....Z...ProcessP00000230:·0000·0200·5a00·0000·5072·6f63·6573·7350··....Z...ProcessP
00000240:·726e·6700·5f5f·696d·705f·5072·6f63·6573··rng.__imp_Proces00000240:·726e·6700·5f5f·696d·705f·5072·6f63·6573··rng.__imp_Proces
00000250:·7350·726e·6700·5f68·6561·645f·5f74·6d70··sPrng._head__tmp00000250:·7350·726e·6700·5f68·6561·645f·5f74·6d70··sPrng._head__tmp
00000260:·5f72·7573·7463·724c·4346·3568·5f62·6372··_rustcrLCF5h_bcr00000260:·5f72·7573·7463·4f77·5377·6a44·5f62·6372··_rustcOwSwjD_bcr
00000270:·7970·7470·7269·6d69·7469·7665·735f·646c··yptprimitives_dl00000270:·7970·7470·7269·6d69·7469·7665·735f·646c··yptprimitives_dl
00000280:·6c5f·696d·706f·7274·735f·6c69·6200·······l_imports_lib.00000280:·6c5f·696d·706f·7274·735f·6c69·6200·······l_imports_lib.
918 B
api-ms-win-core-synch-l1-2-0.dllt.o
    
Offset 31, 11 lines modifiedOffset 31, 11 lines modified
000001e0:·0000·0000·0000·0000·0000·0000·2e69·6461··.............ida000001e0:·0000·0000·0000·0000·0000·0000·2e69·6461··.............ida
000001f0:·7461·2435·0000·0000·0500·0000·0301·0800··ta$5............000001f0:·7461·2435·0000·0000·0500·0000·0301·0800··ta$5............
00000200:·0000·0000·0000·0000·0000·0000·0000·0000··................00000200:·0000·0000·0000·0000·0000·0000·0000·0000··................
00000210:·2e69·6461·7461·2437·0000·0000·0600·0000··.idata$7........00000210:·2e69·6461·7461·2437·0000·0000·0600·0000··.idata$7........
00000220:·0301·2100·0000·0000·0000·0000·0000·0000··..!.............00000220:·0301·2100·0000·0000·0000·0000·0000·0000··..!.............
00000230:·0000·0000·0000·0000·0400·0000·0000·0000··................00000230:·0000·0000·0000·0000·0400·0000·0000·0000··................
00000240:·0600·0000·0200·4a00·0000·5f5f·5f74·6d70··......J...___tmp00000240:·0600·0000·0200·4a00·0000·5f5f·5f74·6d70··......J...___tmp
00000250:·5f72·7573·7463·724c·4346·3568·5f61·7069··_rustcrLCF5h_api00000250:·5f72·7573·7463·4f77·5377·6a44·5f61·7069··_rustcOwSwjD_api
00000260:·5f6d·735f·7769·6e5f·636f·7265·5f73·796e··_ms_win_core_syn00000260:·5f6d·735f·7769·6e5f·636f·7265·5f73·796e··_ms_win_core_syn
00000270:·6368·5f6c·315f·325f·305f·646c·6c5f·696d··ch_l1_2_0_dll_im00000270:·6368·5f6c·315f·325f·305f·646c·6c5f·696d··ch_l1_2_0_dll_im
00000280:·706f·7274·735f·6c69·625f·696e·616d·6500··ports_lib_iname.00000280:·706f·7274·735f·6c69·625f·696e·616d·6500··ports_lib_iname.
1.29 KB
api-ms-win-core-synch-l1-2-0.dllh.o
Max HTML report size reached
1.03 KB
api-ms-win-core-synch-l1-2-0.dlls00002.o
Max HTML report size reached
920 B
api-ms-win-core-synch-l1-2-0.dlls00001.o
Max HTML report size reached
926 B
api-ms-win-core-synch-l1-2-0.dlls00000.o
Max HTML report size reached
208 KB
./usr/lib/rustlib/x86_64-pc-windows-gnu/lib/std-79f5311fdc939639.dll
208 KB
objdump
Max HTML report size reached
38.2 MB
rust-doc_1.83.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·2024-12-04·17:07:54.000000·debian-binary1 -rw-r--r--···0········0········0········4·2024-12-04·17:07:54.000000·debian-binary
2 -rw-r--r--···0········0········0···939220·2024-12-04·17:07:54.000000·control.tar.xz2 -rw-r--r--···0········0········0···939028·2024-12-04·17:07:54.000000·control.tar.xz
3 -rw-r--r--···0········0········0·21283624·2024-12-04·17:07:54.000000·data.tar.xz3 -rw-r--r--···0········0········0·21134640·2024-12-04·17:07:54.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.83.0+dfsg1-13 Version:·1.83.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:·6192946 Installed-Size:·621336
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
38.2 MB
data.tar.xz
38.2 MB
data.tar
119 KB
file list
    
Offset 6, 53 lines modifiedOffset 6, 53 lines modified
6 -rw-r--r--···0·root·········(0)·root·········(0)·····9255·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/changelog.Debian.gz6 -rw-r--r--···0·root·········(0)·root·········(0)·····9255·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/changelog.Debian.gz
7 -rw-r--r--···0·root·········(0)·root·········(0)···196076·2024-11-26·10:12:09.000000·./usr/share/doc/rust-doc/changelog.gz7 -rw-r--r--···0·root·········(0)·root·········(0)···196076·2024-11-26·10:12:09.000000·./usr/share/doc/rust-doc/changelog.gz
8 -rw-r--r--···0·root·········(0)·root·········(0)···139026·2024-12-04·17:07:09.000000·./usr/share/doc/rust-doc/copyright8 -rw-r--r--···0·root·········(0)·root·········(0)···139026·2024-12-04·17:07:09.000000·./usr/share/doc/rust-doc/copyright
9 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/9 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/
10 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/10 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/
11 -rw-r--r--···0·root·········(0)·root·········(0)····19022·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/all.html11 -rw-r--r--···0·root·········(0)·root·········(0)····19022·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/all.html
12 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/12 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/
13 -rw-r--r--···0·root·········(0)·root·········(0)·····6410·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.alloc.html13 -rw-r--r--···0·root·········(0)·root·········(0)·····6464·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.alloc.html
14 -rw-r--r--···0·root·········(0)·root·········(0)·····6165·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.alloc_zeroed.html14 -rw-r--r--···0·root·········(0)·root·········(0)·····6219·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.alloc_zeroed.html
15 -rw-r--r--···0·root·········(0)·root·········(0)·····4915·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.dealloc.html15 -rw-r--r--···0·root·········(0)·root·········(0)·····4969·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.dealloc.html
16 -rw-r--r--···0·root·········(0)·root·········(0)·····5378·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.handle_alloc_error.html16 -rw-r--r--···0·root·········(0)·root·········(0)·····5459·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.handle_alloc_error.html
17 -rw-r--r--···0·root·········(0)·root·········(0)·····5133·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.realloc.html17 -rw-r--r--···0·root·········(0)·root·········(0)·····5268·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/fn.realloc.html
18 -rw-r--r--···0·root·········(0)·root·········(0)·····7762·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/index.html18 -rw-r--r--···0·root·········(0)·root·········(0)·····7762·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/index.html
19 -rw-r--r--···0·root·········(0)·root·········(0)······209·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/sidebar-items1.83.0.js19 -rw-r--r--···0·root·········(0)·root·········(0)······209·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/sidebar-items1.83.0.js
20 -rw-r--r--···0·root·········(0)·root·········(0)····36761·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.AllocError.html20 -rw-r--r--···0·root·········(0)·root·········(0)····39866·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.AllocError.html
21 -rw-r--r--···0·root·········(0)·root·········(0)····38792·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.Global.html21 -rw-r--r--···0·root·········(0)·root·········(0)····41546·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.Global.html
22 -rw-r--r--···0·root·········(0)·root·········(0)····60629·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.Layout.html22 -rw-r--r--···0·root·········(0)·root·········(0)····64706·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.Layout.html
23 -rw-r--r--···0·root·········(0)·root·········(0)····38626·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.LayoutError.html23 -rw-r--r--···0·root·········(0)·root·········(0)····41731·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/struct.LayoutError.html
24 -rw-r--r--···0·root·········(0)·root·········(0)····33897·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/trait.Allocator.html24 -rw-r--r--···0·root·········(0)·root·········(0)····35571·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/trait.Allocator.html
25 -rw-r--r--···0·root·········(0)·root·········(0)····24121·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/trait.GlobalAlloc.html25 -rw-r--r--···0·root·········(0)·root·········(0)····24850·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/trait.GlobalAlloc.html
26 -rw-r--r--···0·root·········(0)·root·········(0)·····4160·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/type.LayoutErr.html26 -rw-r--r--···0·root·········(0)·root·········(0)·····4187·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/alloc/type.LayoutErr.html
27 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/27 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/
28 -rw-r--r--···0·root·········(0)·root·········(0)···174890·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/enum.Cow.html28 -rw-r--r--···0·root·········(0)·root·········(0)···187445·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/enum.Cow.html
29 -rw-r--r--···0·root·········(0)·root·········(0)·····4776·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/index.html29 -rw-r--r--···0·root·········(0)·root·········(0)·····4776·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/index.html
30 -rw-r--r--···0·root·········(0)·root·········(0)·······81·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/sidebar-items1.83.0.js30 -rw-r--r--···0·root·········(0)·root·········(0)·······81·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/sidebar-items1.83.0.js
31 -rw-r--r--···0·root·········(0)·root·········(0)····24196·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/trait.Borrow.html31 -rw-r--r--···0·root·········(0)·root·········(0)····24925·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/trait.Borrow.html
32 -rw-r--r--···0·root·········(0)·root·········(0)····10933·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/trait.BorrowMut.html32 -rw-r--r--···0·root·········(0)·root·········(0)····11392·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/trait.BorrowMut.html
33 -rw-r--r--···0·root·········(0)·root·········(0)····14233·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/trait.ToOwned.html33 -rw-r--r--···0·root·········(0)·root·········(0)····14395·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/borrow/trait.ToOwned.html
34 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/34 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/
35 -rw-r--r--···0·root·········(0)·root·········(0)····18466·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/index.html35 -rw-r--r--···0·root·········(0)·root·········(0)····18547·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/index.html
36 -rw-r--r--···0·root·········(0)·root·········(0)·······52·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/sidebar-items1.83.0.js36 -rw-r--r--···0·root·········(0)·root·········(0)·······52·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/sidebar-items1.83.0.js
37 -rw-r--r--···0·root·········(0)·root·········(0)···519664·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/struct.Box.html37 -rw-r--r--···0·root·········(0)·root·········(0)···559273·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/struct.Box.html
38 -rw-r--r--···0·root·········(0)·root·········(0)····42054·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/struct.ThinBox.html38 -rw-r--r--···0·root·········(0)·root·········(0)····44943·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/struct.ThinBox.html
39 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/thin/39 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/thin/
40 -rw-r--r--···0·root·········(0)·root·········(0)······432·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/thin/struct.ThinBox.html40 -rw-r--r--···0·root·········(0)·root·········(0)······432·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/boxed/thin/struct.ThinBox.html
41 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/41 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/
42 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/42 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/
43 -rw-r--r--···0·root·········(0)·root·········(0)····19560·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/index.html43 -rw-r--r--···0·root·········(0)·root·········(0)····19560·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/index.html
44 -rw-r--r--···0·root·········(0)·root·········(0)······116·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/sidebar-items1.83.0.js44 -rw-r--r--···0·root·········(0)·root·········(0)······116·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/sidebar-items1.83.0.js
45 -rw-r--r--···0·root·········(0)·root·········(0)···127900·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.BinaryHeap.html45 -rw-r--r--···0·root·········(0)·root·········(0)···132148·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.BinaryHeap.html
46 -rw-r--r--···0·root·········(0)·root·········(0)···149271·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.Drain.html46 -rw-r--r--···0·root·········(0)·root·········(0)···166599·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.Drain.html
47 -rw-r--r--···0·root·········(0)·root·········(0)···138325·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.DrainSorted.html47 -rw-r--r--···0·root·········(0)·root·········(0)···154261·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.DrainSorted.html
48 -rw-r--r--···0·root·········(0)·root·········(0)···159246·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.IntoIter.html48 -rw-r--r--···0·root·········(0)·root·········(0)···177198·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.IntoIter.html
49 -rw-r--r--···0·root·········(0)·root·········(0)···144333·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.IntoIterSorted.html49 -rw-r--r--···0·root·········(0)·root·········(0)···160725·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.IntoIterSorted.html
50 -rw-r--r--···0·root·········(0)·root·········(0)···154871·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.Iter.html50 -rw-r--r--···0·root·········(0)·root·········(0)···172655·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.Iter.html
51 -rw-r--r--···0·root·········(0)·root·········(0)····29457·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.PeekMut.html51 -rw-r--r--···0·root·········(0)·root·········(0)····31281·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.PeekMut.html
52 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/52 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/
53 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/53 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/
54 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/54 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/
55 -rw-r--r--···0·root·········(0)·root·········(0)······504·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/enum.Entry.html55 -rw-r--r--···0·root·········(0)·root·········(0)······504·2024-12-04·17:07:54.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·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/struct.OccupiedEntry.html56 -rw-r--r--···0·root·········(0)·root·········(0)······544·2024-12-04·17:07:54.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·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/struct.OccupiedError.html57 -rw-r--r--···0·root·········(0)·root·········(0)······544·2024-12-04·17:07:54.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·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/struct.VacantEntry.html58 -rw-r--r--···0·root·········(0)·root·········(0)······536·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/map/entry/struct.VacantEntry.html
Offset 82, 260 lines modifiedOffset 82, 260 lines modified
82 -rw-r--r--···0·root·········(0)·root·········(0)······528·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Intersection.html82 -rw-r--r--···0·root·········(0)·root·········(0)······528·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Intersection.html
83 -rw-r--r--···0·root·········(0)·root·········(0)······512·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.IntoIter.html83 -rw-r--r--···0·root·········(0)·root·········(0)······512·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.IntoIter.html
84 -rw-r--r--···0·root·········(0)·root·········(0)······496·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Iter.html84 -rw-r--r--···0·root·········(0)·root·········(0)······496·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Iter.html
85 -rw-r--r--···0·root·········(0)·root·········(0)······500·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Range.html85 -rw-r--r--···0·root·········(0)·root·········(0)······500·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Range.html
86 -rw-r--r--···0·root·········(0)·root·········(0)······556·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.SymmetricDifference.html86 -rw-r--r--···0·root·········(0)·root·········(0)······556·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.SymmetricDifference.html
87 -rw-r--r--···0·root·········(0)·root·········(0)······500·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Union.html87 -rw-r--r--···0·root·········(0)·root·········(0)······500·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree/set/struct.Union.html
88 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/88 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/
89 -rw-r--r--···0·root·········(0)·root·········(0)····38793·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/enum.Entry.html89 -rw-r--r--···0·root·········(0)·root·········(0)····40833·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/enum.Entry.html
90 -rw-r--r--···0·root·········(0)·root·········(0)····10396·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/index.html90 -rw-r--r--···0·root·········(0)·root·········(0)····10396·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/index.html
91 -rw-r--r--···0·root·········(0)·root·········(0)······277·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/sidebar-items1.83.0.js91 -rw-r--r--···0·root·········(0)·root·········(0)······277·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/sidebar-items1.83.0.js
92 -rw-r--r--···0·root·········(0)·root·········(0)···208884·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.BTreeMap.html92 -rw-r--r--···0·root·········(0)·root·········(0)···218868·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.BTreeMap.html
93 -rw-r--r--···0·root·········(0)·root·········(0)····33767·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Cursor.html93 -rw-r--r--···0·root·········(0)·root·········(0)····35903·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Cursor.html
94 -rw-r--r--···0·root·········(0)·root·········(0)····40275·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.CursorMut.html94 -rw-r--r--···0·root·········(0)·root·········(0)····42363·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.CursorMut.html
95 -rw-r--r--···0·root·········(0)·root·········(0)····39554·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.CursorMutKey.html95 -rw-r--r--···0·root·········(0)·root·········(0)····41642·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.CursorMutKey.html
96 -rw-r--r--···0·root·········(0)·root·········(0)···133837·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.ExtractIf.html96 -rw-r--r--···0·root·········(0)·root·········(0)···149989·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.ExtractIf.html
97 -rw-r--r--···0·root·········(0)·root·········(0)···153475·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoIter.html97 -rw-r--r--···0·root·········(0)·root·········(0)···171379·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoIter.html
98 -rw-r--r--···0·root·········(0)·root·········(0)···152567·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoKeys.html98 -rw-r--r--···0·root·········(0)·root·········(0)···170375·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoKeys.html
99 -rw-r--r--···0·root·········(0)·root·········(0)···151089·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoValues.html99 -rw-r--r--···0·root·········(0)·root·········(0)···168705·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoValues.html
100 -rw-r--r--···0·root·········(0)·root·········(0)···158232·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Iter.html100 -rw-r--r--···0·root·········(0)·root·········(0)···176592·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Iter.html
101 -rw-r--r--···0·root·········(0)·root·········(0)···151064·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IterMut.html101 -rw-r--r--···0·root·········(0)·root·········(0)···168872·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IterMut.html
102 -rw-r--r--···0·root·········(0)·root·········(0)···157428·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Keys.html102 -rw-r--r--···0·root·········(0)·root·········(0)···175596·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Keys.html
103 -rw-r--r--···0·root·········(0)·root·········(0)····39700·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.OccupiedEntry.html103 -rw-r--r--···0·root·········(0)·root·········(0)····41500·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.OccupiedEntry.html
104 -rw-r--r--···0·root·········(0)·root·········(0)····33527·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.OccupiedError.html104 -rw-r--r--···0·root·········(0)·root·········(0)····35711·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.OccupiedError.html
105 -rw-r--r--···0·root·········(0)·root·········(0)···153997·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Range.html105 -rw-r--r--···0·root·········(0)·root·········(0)···171925·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Range.html
106 -rw-r--r--···0·root·········(0)·root·········(0)···146824·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.RangeMut.html106 -rw-r--r--···0·root·········(0)·root·········(0)···164200·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.RangeMut.html
107 -rw-r--r--···0·root·········(0)·root·········(0)····37762·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.UnorderedKeyError.html107 -rw-r--r--···0·root·········(0)·root·········(0)····40090·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.UnorderedKeyError.html
108 -rw-r--r--···0·root·········(0)·root·········(0)····29607·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.VacantEntry.html108 -rw-r--r--···0·root·········(0)·root·········(0)····31383·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.VacantEntry.html
109 -rw-r--r--···0·root·········(0)·root·········(0)···155646·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Values.html109 -rw-r--r--···0·root·········(0)·root·········(0)···173526·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Values.html
110 -rw-r--r--···0·root·········(0)·root·········(0)···148481·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.ValuesMut.html110 -rw-r--r--···0·root·········(0)·root·········(0)···165809·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.ValuesMut.html
111 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/111 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/
112 -rw-r--r--···0·root·········(0)·root·········(0)·····8071·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/index.html112 -rw-r--r--···0·root·········(0)·root·········(0)·····8071·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/index.html
113 -rw-r--r--···0·root·········(0)·root·········(0)······199·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/sidebar-items1.83.0.js113 -rw-r--r--···0·root·········(0)·root·········(0)······199·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/sidebar-items1.83.0.js
114 -rw-r--r--···0·root·········(0)·root·········(0)···182759·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.BTreeSet.html114 -rw-r--r--···0·root·········(0)·root·········(0)···191327·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.BTreeSet.html
115 -rw-r--r--···0·root·········(0)·root·········(0)····32785·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Cursor.html115 -rw-r--r--···0·root·········(0)·root·········(0)····34753·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Cursor.html
116 -rw-r--r--···0·root·········(0)·root·········(0)····39055·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.CursorMut.html116 -rw-r--r--···0·root·········(0)·root·········(0)····40927·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.CursorMut.html
117 -rw-r--r--···0·root·········(0)·root·········(0)····38336·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.CursorMutKey.html117 -rw-r--r--···0·root·········(0)·root·········(0)····40208·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.CursorMutKey.html
118 -rw-r--r--···0·root·········(0)·root·········(0)···140153·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Difference.html118 -rw-r--r--···0·root·········(0)·root·········(0)···156449·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Difference.html
119 -rw-r--r--···0·root·········(0)·root·········(0)···133221·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.ExtractIf.html119 -rw-r--r--···0·root·········(0)·root·········(0)···149205·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.ExtractIf.html
120 -rw-r--r--···0·root·········(0)·root·········(0)···140291·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Intersection.html120 -rw-r--r--···0·root·········(0)·root·········(0)···156587·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Intersection.html
121 -rw-r--r--···0·root·········(0)·root·········(0)···150891·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.IntoIter.html121 -rw-r--r--···0·root·········(0)·root·········(0)···168507·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.IntoIter.html
122 -rw-r--r--···0·root·········(0)·root·········(0)···156684·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Iter.html122 -rw-r--r--···0·root·········(0)·root·········(0)···174756·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Iter.html
123 -rw-r--r--···0·root·········(0)·root·········(0)···152489·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Range.html123 -rw-r--r--···0·root·········(0)·root·········(0)···170129·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Range.html
124 -rw-r--r--···0·root·········(0)·root·········(0)···138896·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.SymmetricDifference.html124 -rw-r--r--···0·root·········(0)·root·········(0)···154976·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.SymmetricDifference.html
125 -rw-r--r--···0·root·········(0)·root·········(0)···137920·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Union.html125 -rw-r--r--···0·root·········(0)·root·········(0)···154000·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Union.html
126 -rw-r--r--···0·root·········(0)·root·········(0)····37983·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.UnorderedKeyError.html126 -rw-r--r--···0·root·········(0)·root·········(0)····40311·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.UnorderedKeyError.html
127 -rw-r--r--···0·root·········(0)·root·········(0)····35001·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/enum.TryReserveErrorKind.html127 -rw-r--r--···0·root·········(0)·root·········(0)····37215·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/enum.TryReserveErrorKind.html
128 -rw-r--r--···0·root·········(0)·root·········(0)·····7163·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/index.html128 -rw-r--r--···0·root·········(0)·root·········(0)·····7163·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/index.html
129 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/129 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/
130 -rw-r--r--···0·root·········(0)·root·········(0)·····6363·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/index.html130 -rw-r--r--···0·root·········(0)·root·········(0)·····6363·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/index.html
131 -rw-r--r--···0·root·········(0)·root·········(0)······110·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/sidebar-items1.83.0.js131 -rw-r--r--···0·root·········(0)·root·········(0)······110·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/sidebar-items1.83.0.js
132 -rw-r--r--···0·root·········(0)·root·········(0)····39106·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.Cursor.html132 -rw-r--r--···0·root·········(0)·root·········(0)····41242·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.Cursor.html
133 -rw-r--r--···0·root·········(0)·root·········(0)····53257·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.CursorMut.html133 -rw-r--r--···0·root·········(0)·root·········(0)····55249·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.CursorMut.html
134 -rw-r--r--···0·root·········(0)·root·········(0)···130813·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.ExtractIf.html134 -rw-r--r--···0·root·········(0)·root·········(0)···146413·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.ExtractIf.html
135 -rw-r--r--···0·root·········(0)·root·········(0)···157502·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.IntoIter.html135 -rw-r--r--···0·root·········(0)·root·········(0)···175430·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.IntoIter.html
136 -rw-r--r--···0·root·········(0)·root·········(0)···155080·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.Iter.html136 -rw-r--r--···0·root·········(0)·root·········(0)···172888·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.Iter.html
137 -rw-r--r--···0·root·········(0)·root·········(0)···147558·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.IterMut.html137 -rw-r--r--···0·root·········(0)·root·········(0)···164862·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.IterMut.html
138 -rw-r--r--···0·root·········(0)·root·········(0)···130910·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.LinkedList.html138 -rw-r--r--···0·root·········(0)·root·········(0)···136766·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.LinkedList.html
139 -rw-r--r--···0·root·········(0)·root·········(0)······157·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/sidebar-items1.83.0.js139 -rw-r--r--···0·root·········(0)·root·········(0)······157·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/sidebar-items1.83.0.js
140 -rw-r--r--···0·root·········(0)·root·········(0)····40081·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/struct.TryReserveError.html140 -rw-r--r--···0·root·········(0)·root·········(0)····42808·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/struct.TryReserveError.html
141 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/141 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/
142 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/drain/142 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/drain/
143 -rw-r--r--···0·root·········(0)·root·········(0)······500·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/drain/struct.Drain.html143 -rw-r--r--···0·root·········(0)·root·········(0)······500·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/drain/struct.Drain.html
144 -rw-r--r--···0·root·········(0)·root·········(0)·····5518·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/index.html144 -rw-r--r--···0·root·········(0)·root·········(0)·····5518·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/index.html
145 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/into_iter/145 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/into_iter/
146 -rw-r--r--···0·root·········(0)·root·········(0)······512·2024-12-04·17:07:54.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·2024-12-04·17:07:54.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·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter/147 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter/
148 -rw-r--r--···0·root·········(0)·root·········(0)······496·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter/struct.Iter.html148 -rw-r--r--···0·root·········(0)·root·········(0)······496·2024-12-04·17:07:54.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·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter_mut/149 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/iter_mut/
150 -rw-r--r--···0·root·········(0)·root·········(0)······508·2024-12-04·17:07:54.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·2024-12-04·17:07:54.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·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/sidebar-items1.83.0.js151 -rw-r--r--···0·root·········(0)·root·········(0)·······83·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/sidebar-items1.83.0.js
152 -rw-r--r--···0·root·········(0)·root·········(0)···149532·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.Drain.html152 -rw-r--r--···0·root·········(0)·root·········(0)···166932·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.Drain.html
153 -rw-r--r--···0·root·········(0)·root·········(0)···154990·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.IntoIter.html153 -rw-r--r--···0·root·········(0)·root·········(0)···172486·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.IntoIter.html
154 -rw-r--r--···0·root·········(0)·root·········(0)···154610·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.Iter.html154 -rw-r--r--···0·root·········(0)·root·········(0)···172154·2024-12-04·17:07:54.000000·./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.Iter.html
Max diff block lines reached; 89450/121480 bytes (73.63%) of diff not shown.
8.89 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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>
9.08 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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#173-181">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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#173-181">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.83.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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.82 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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.63 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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#395-414">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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#395-414">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.83.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>
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="../../core/macro.panic.html"·title="macro·core::panic"><code>panic!</code></a>·or·similar.</p>4 rather·than·directly·invoking·<a·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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.33 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.83.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:·68d6758ab651f70274bd64cdd706532494c8256dcd99e6511d05f094e33f5d6c·...·]/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.3 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.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·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="../../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:·861f0e97882f790b756268633da9b0ac48f848d9cae4f210181689cff8d16e2c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/trait.Clone.html"·title="trai[·...·truncated·by·diffoscope;·len:·11391,·SHA:·0ec749cc4321e5752d13f409c0190f481d1d03e12d65b9d2cbadcf08ea1f89d6·...·]/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="../../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:·4216859007a586925ac8608f1c101715bc05707ea1a5df531167f6b641fa7f06·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/marker/trait.Copy.html"·title="trait[·...·truncated·by·diffoscope;·len:·4347,·SHA:·f44b606a2c56bd685ce901c2ddf1a87259608eb91319d2667342da11e71b672c·...·]/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·[·...·truncated·by·diffoscope;·len:·672,·SHA:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·177b78315f049c4065999398ed2f89f85b6487d450f04912cef3a3be057e45e9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where9 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·604f234273b763a6bed19dbd345c594cd2aa8776b239765ce764b1e7c24bf9c9·...·]/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[·...·truncated·by·diffoscope;·len:·1551,·SHA:·a703c408c4e022a9f5f607159372ac6d607aaf923b3e1387c117f9b36f5022ac·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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=[·...·truncated·by·diffoscope;·len:·156,·SHA:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../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:·c2c8c9a4a4178ce9f649b57ef777997f02105c416fe8b6a7efafe289a2c82f94·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·3bbde9fc45defa1dca05b2d321fdaad6904f701633b311a788797b29fc3d0d8c·...·]/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#2672-2686">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="../../core/marker/trait.Sized.html"·title="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:·b3522f6656a75b8786d727c522d67358e29dfa2964a2f89c2aa386e5cf9583ce·...·]/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="https://doc.rust-lang.org/1.83.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:·4e66fd818d0db79470c3c05df8933adf2420d3b968fd4ca310e2824aa93e7fa4·...·]/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·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#250-340">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#253-255">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:·1f5c3a6c168fdf21ffc036587f07105570f43d39d1e67c4dffa101385a421caf·...·]/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#275-283">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#250-340">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#253-255">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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·2652,·SHA:·2ed50db89e2174da23e1e1aaa46b49e34c6b3b915407c521fd455d518b5fc0df·...·]/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#275-283">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="../../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;,9 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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#287-295">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="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·260e8989f78e35ac934c4d7b6ae89c7c7f7e5dd6933f47a27f5ce40590ef2f9a·...·]/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#287-295">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="../../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;,14 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·being17 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·260e8989f78e35ac934c4d7b6ae89c7c7f7e5dd6933f47a27f5ce40590ef2f9a·...·]/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#299-339">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#299-339">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="../../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;,20 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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">where23 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·788,·SHA:·7663eed06305c01bb43ed1e1324d7637c93e37393e7ea3f88fc6a6821408d469·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·6a94a2d86175780afd2eba0e5d59e219d66d8981a732d40dac362a0d7c3815d2·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·5d52bc29ea1f11f6aff2c5dbaf1cb233c42848342dd554d8941351fdffba216c·...·]/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·[·...·truncated·by·diffoscope;·len:·672,·SHA:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·177b78315f049c4065999398ed2f89f85b6487d450f04912cef3a3be057e45e9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where27 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·604f234273b763a6bed19dbd345c594cd2aa8776b239765ce764b1e7c24bf9c9·...·]/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[·...·truncated·by·diffoscope;·len:·1551,·SHA:·a703c408c4e022a9f5f607159372ac6d607aaf923b3e1387c117f9b36f5022ac·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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=[·...·truncated·by·diffoscope;·len:·156,·SHA:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../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:·0f36698ef1f8522439780e4de3b8f612c0a7a09c8f896d4b7a61bbeffa463db0·...·]/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="https://doc.rust-lang.org/1.83.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:·e25370032e85c931ad62255b1432a49de1bcc5c915b5198766f5b1f371bb8599·...·]/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·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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.83.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>
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="../../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#70">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="https://doc.rust-lang.org/1.83.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:·642d14ee23f8ef0685e51802777a41df89b9f72289d0376bd2492ae2db31b05c·...·]/src/core/alloc/layout.rs.html#70">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="../../core/primitive.usize.html">usize</a>,13 ····size:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
14 ····align:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,14 ····align:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
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>,15 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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>,
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="../../src/core/alloc/layout.rs.html#131">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="https://doc.rust-lang.org/1.83.0/src/core/alloc/layout.rs.html#131">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="../../core/primitive.usize.html">usize</a>,32 ····size:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
33 ····align:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,33 ····align:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../src/core/alloc/layout.rs.html#150">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>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.83.0/src/core/alloc/layout.rs.html#150">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.83.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>
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#163">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>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.83.0/src/core/alloc/layout.rs.html#163">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.83.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>
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="../../src/core/alloc/layout.rs.html#172">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="https://doc.rust-lang.org/1.83.0/src/core/alloc/layout.rs.html#172">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="../../src/core/alloc/layout.rs.html#187">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">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="https://doc.rust-lang.org/1.83.0/src/core/alloc/layout.rs.html#187">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.83.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">where
43 ····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·to43 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·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="../../src/core/alloc/layout.rs.html#223">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">where46 </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.83.0/src/core/alloc/layout.rs.html#223">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.83.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">where
47 ····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·to47 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·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="../../core/primitive.slice.html"·title="primitive·slice">slice</a>,·then·the·length·of·the·slice·tail·must·be·an·initialized56 <li>a·<a·href="https://doc.rust-lang.org/1.83.0/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="../../src/core/alloc/layout.rs.html#240">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>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.83.0/src/core/alloc/layout.rs.html#240">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.83.0/core/ptr/non_nul[·...·truncated·by·diffoscope;·len:·141,·SHA:·0f8e716178c8f5b9f47b873a7b1f3c5acb66ffb39f236ecf488a50088455096f·...·]/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="../../src/core/alloc/layout.rs.html#262">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·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="https://doc.rust-lang.org/1.83.0/src/core/alloc/layout.rs.html#262">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.83.0/core/primit[·...·truncated·by·diffoscope;·len:·87,·SHA:·ed42f2dfd19805cea8380bc86dfcc2f39b24175ba2d5f9e29e230162c5175fd3·...·]/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="../../src/core/alloc/layout.rs.html#291">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>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.83.0/src/core/alloc/layout.rs.html#291">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:·58cd3420bd32ca224ac2da47df4b039e426827e54e2b2d6437c322f30c928ee5·...·]/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="../../src/core/alloc/layout.rs.html#340">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="https://doc.rust-lang.org/1.83.0/src/core/alloc/layout.rs.html#340">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="../../src/core/alloc/layout.rs.html#381">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·of106 </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.83.0/src/core/alloc/layout.rs.html#381">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.83.0/core/primitive.usize[·...·truncated·by·diffoscope;·len:·309,·SHA:·a6fbaaad212079957847d37b03b9f4440d89f93928b8a5fad63f9e0591325058·...·]/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="../../src/core/alloc/layout.rs.html#438">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·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="https://doc.rust-lang.org/1.83.0/src/core/alloc/layout.rs.html#438">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:·1bf81314d60e390a146d2ebad0d01356b6ffbd7d73ab665908320bc0d0a3e447·...·]/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; 64259/110788 bytes (58.00%) of diff not shown.
77.9 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#550">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.0/src/core/alloc/layout.rs.html#550">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="../../src/core/alloc/layout.rs.html#549">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:·9750b052d904a31155e74c7d5068c2a6134a400ff12dfdc4946b7fec14aacf95·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/alloc/layout.rs.html#549">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.83.0/core/clone/trait.Clone.html"[·...·truncated·by·diffoscope;·len:·10797,·SHA:·102205c9387a0336662fe32d4284e41dd0d47087f578aad021025755dc5c4eff·...·]/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="../../src/core/alloc/layout.rs.html#549">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:·dad6cfe7591bcf05d83a164629eefc7cfb1cb1484516c18f0b99cdf62f5c601f·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/alloc/layout.rs.html#549">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.83.0/core/cmp/trait.PartialEq[·...·truncated·by·diffoscope;·len:·1646,·SHA:·25fbf25a4575be161bb8568a2cf81d53bd43d5e5d0efe0241212394cc39b2dde·...·]/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="../../src/core/alloc/layout.rs.html#549">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:·d9c8ca3aa28ce91089a3ff108afcc4ff01184698b462212e1748e383908227d8·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/alloc/layout.rs.html#549">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.83.0/core/cmp/trait.Eq.html"·title="[·...·truncated·by·diffoscope;·len:·4011,·SHA:·cadfc89c1ecd8790741e86c3567b8ec469ed7232f37698814229a21a167e51bd·...·]/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·[·...·truncated·by·diffoscope;·len:·672,·SHA:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·177b78315f049c4065999398ed2f89f85b6487d450f04912cef3a3be057e45e9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where10 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·604f234273b763a6bed19dbd345c594cd2aa8776b239765ce764b1e7c24bf9c9·...·]/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[·...·truncated·by·diffoscope;·len:·1555,·SHA:·0df9b126e90de6e139ef2635b6f5a00b8152d9da651760f76203fc14ebb12acc·...·]/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="https://doc.rust-lang.org/1.83.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:·1798,·SHA:·36cf4a134b790fc0e280599ecc1e308b33fb241e7dce521b3d8f6a5c552b0aeb·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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=[·...·truncated·by·diffoscope;·len:·156,·SHA:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../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:·c2c8c9a4a4178ce9f649b57ef777997f02105c416fe8b6a7efafe289a2c82f94·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·3bbde9fc45defa1dca05b2d321fdaad6904f701633b311a788797b29fc3d0d8c·...·]/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#2672-2686">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="../../core/marker/trait.Sized.html"·title="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:·b3522f6656a75b8786d727c522d67358e29dfa2964a2f89c2aa386e5cf9583ce·...·]/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="https://doc.rust-lang.org/1.83.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:·4e66fd818d0db79470c3c05df8933adf2420d3b968fd4ca310e2824aa93e7fa4·...·]/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·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.1 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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·{1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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.83.0/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="../../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;;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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·260e8989f78e35ac934c4d7b6ae89c7c7f7e5dd6933f47a27f5ce40590ef2f9a·...·]/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="../../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>);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.83.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.83.0/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="../../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;·{·...·}9 ····)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·260e8989f78e35ac934c4d7b6ae89c7c7f7e5dd6933f47a27f5ce40590ef2f9a·...·]/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="../../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;,12 ········ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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;·{·...·}15 ····)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·260e8989f78e35ac934c4d7b6ae89c7c7f7e5dd6933f47a27f5ce40590ef2f9a·...·]/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="../../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;,18 ········ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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;·{·...·}21 ····)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·260e8989f78e35ac934c4d7b6ae89c7c7f7e5dd6933f47a27f5ce40590ef2f9a·...·]/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="../../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;,24 ········ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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;·{·...·}27 ····)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·260e8989f78e35ac934c4d7b6ae89c7c7f7e5dd6933f47a27f5ce40590ef2f9a·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a></span>·{·...·}29 ·······<span·class="where">where·Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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="../../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>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.83.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:·d30b72e9a595e51421cd970ebeb30a55e7b3a39884319624a999e44755a0b84d·...·]/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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../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>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.83.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.83.0/core/ptr/non_null[·...·truncated·by·diffoscope;·len:·140,·SHA:·9a4ca7ab120057646a028d71cfbb591241b344a11f61908bc6e60cff9ef13694·...·]/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="../../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>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.83.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:·caa30a440e5484528a99307e302733364af8b3a22c2dc91001c287c4ae49ee36·...·]/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="../../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="https://doc.rust-lang.org/1.83.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>(
123 ····&amp;self,123 ····&amp;self,
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;,124 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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>127 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·260e8989f78e35ac934c4d7b6ae89c7c7f7e5dd6933f47a27f5ce40590ef2f9a·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·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="../../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="https://doc.rust-lang.org/1.83.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>(
153 ····&amp;self,153 ····&amp;self,
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;,154 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·being157 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·260e8989f78e35ac934c4d7b6ae89c7c7f7e5dd6933f47a27f5ce40590ef2f9a·...·]/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="../../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="https://doc.rust-lang.org/1.83.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>(
186 ····&amp;self,186 ····&amp;self,
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;,187 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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>190 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·260e8989f78e35ac934c4d7b6ae89c7c7f7e5dd6933f47a27f5ce40590ef2f9a·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·allocated
Max diff block lines reached; 5904/48064 bytes (12.28%) of diff not shown.
22.4 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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·{1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.0/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="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../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="https://doc.rust-lang.org/1.83.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../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>);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.83.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../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="https://doc.rust-lang.org/1.83.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>,9 ········ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../core/primitive.usize.html">usize</a>,11 ········new_size:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
12 ····)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>·{·...·}12 ····)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../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>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.83.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:·91a5a7a4288be43fc54e9c316d3c5a5f6a8c21a2bf75d86fab0566a7f73effaf·...·]/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="../../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>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.83.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.83.0/core/primi[·...·truncated·by·diffoscope;·len:·87,·SHA:·b5a9b30b0883645c86e101c75d3d277fbe5c619a2904cced4b4fca7063287445·...·]/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="../../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·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="https://doc.rust-lang.org/1.83.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:·8abcce8c2d3e72ef85daae5095afa5c04cf9af55c42c0ddce648f81116dbbc5a·...·]/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·behaviour.164 zero·sized·<code>layout</code>·can·result·in·undefined·behaviour.
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="../../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="https://doc.rust-lang.org/1.83.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>(
174 ····&amp;self,174 ····&amp;self,
175 ····ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>,175 ····ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../core/primitive.usize.html">usize</a>,177 ····new_size:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
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.178 )·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.83.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.
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.28 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#541">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.0/src/core/alloc/layout.rs.html#541">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>
306 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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-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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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-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="../../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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·'a,</div>{
3 ····Borrowed(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;'a·B</a>),3 ····Borrowed(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·b1ed9a5aa28dda661aa7db7d424af753e4849ccb7dc1a03162151781363a958a·...·]/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="https://doc.rust-lang.org/1.83.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:·723dbfff0147c6a83a2938193ede9d7edb43927525f23d80f1e9df5213fad344·...·]/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="../../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="https://doc.rust-lang.org/1.83.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>
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, 179 lines modifiedOffset 129, 179 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="../../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:·77a7d461ca55f81433109a5931daa29256adf99e900b1d491b749aeda05bd419·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.str.html">str</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"[·...·truncated·by·diffoscope;·len:·8827,·SHA:·0615db55f3f159f580948b678da0294a2817e0e60a447db3a62935c26a512267·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·551ef42f76f1f692336c670018c82c77ee2796fd293062078be7e7c87c1c6692·...·]/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="https://doc.rust-lang.org/1.83.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:·7e7e73b0c043578e6447a615c93a18858224eb8cb63f79280b41f8221fd50c85·...·]/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="../../core/marker/trait.Sized.html"·title="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:·804a89c3ded5e63e09d7590650c121e9d6abab8222fac6c6e29d4195370505ea·...·]/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="https://doc.rust-lang.org/1.83.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:·8c9227761d8212594e07425e02ac1be0b39d0a74d6d82a4e5e36be8241962461·...·]/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="../../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:·fb4079e7a00b07519a644bf7946dd64011c8f217adf868eeb22e529dc4632d8a·...·]/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="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>&gt;·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</di[·...·truncated·by·diffoscope;·len:·353,·SHA:·606e2f4443a72ce5a442a40a92ec27f176e1699dd816c8d0644addc68ad69040·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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:·c3848f1b7caa9d9cc4b11e00357bc04283975603bc2aff52c660806995f9e3fb·...·]/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="../../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:·021b8c96cd906af7d63dd33d2d7bf297f67473f6b91061732350dbb473fbb139·...·]/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="https://doc.rust-lang.org/1.83.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:·74b216dc1e2949eb50c69bab695260e45f5881e935a2dbd7f8f600c16e72ce48·...·]/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="../../core/marker/trait.Sized.html"·title="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:·bab2aeb1f1dc88e7d7d2cef4385f4a6f13ccc72c13a148ede0db94ef0952be13·...·]/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="https://doc.rust-lang.org/1.83.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:·ca24c94f1a33961e80bab22e4c73f4c3b347a567c698892cb83a0098c74de76e·...·]/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="../../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:·2a90e71a81e211dd4815278148c372586f7643b9f23126d16f3fda7a25d94749·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="https://doc.rust-[·...·truncated·by·diffoscope;·len:·1062,·SHA:·316d90aaae967fa8d146d5696bdf27e7191018c60fb713f20bc209137e07b2af·...·]/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#848-854">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:·b5d3f9a7f681c9abd7c37dbbd6ba3d080c34c900db8bbc6d6a0f44adc927e0ef·...·]/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#848-854">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.83.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.83.0/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt[·...·truncated·by·diffoscope;·len:·1128,·SHA:·182b87fe42c889c9ed4ccc7276ee75df803e7b410073c65f3ec63d468dbd0065·...·]/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#857-863">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:·f653a43c0a17f12ce6502f5d49f24576d31b87b2628caf8627b6fb67a9fab240·...·]/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#857-863">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.83.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:·025bddefed5499a468896b6e249d83598e092b327dedb4653cb38625851ccd03·...·]/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#3013-3031">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:·b963e588ca1205e1b5864f05539e238d97b216dc6a3f66d4f32cfbbd9e2bb682·...·]/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#3013-3031">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.83.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:·36321a3889f046498e966f608e22403aa9c8b174531444cbc842d8cadfb7c973·...·]/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="../../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:·8b86f92c4c4b936243a12e9acb51048239f6f8e02a3110a498b0919cede8625d·...·]/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="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;&amp;'a·<a·clas[·...·truncated·by·diffoscope;·len:·951,·SHA:·7fe40070280b66e0e843e680e335a371ce59971e361c57eccd38636d802d0488·...·]/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#2969-2986">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:·a2eb35e0418d7e3f489213c9b41ee34370c217efdf2e375a14889477fcfac77f·...·]/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#2969-2986">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.83.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.83.0/core/primitive.str.html">str</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"·t[·...·truncated·by·diffoscope;·len:·814,·SHA:·a2cb01c141e121c3fa961d727d5b5ecab8e76875889be41a05ad746fff328567·...·]/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#839-845">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:·2150830fcfd8936147c1404163438b722129dd076cc7aeb8cddc80e0e73a413a·...·]/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#839-845">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.83.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:·1db18044c748b3fced9a7a349bd9b595c4acb4ced97a41bb0f47a03c0e22e028·...·]/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.rs.html#1975-1989">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:·938,·SHA:·96a840f3f5597dfd9ff6263ea723c2f8664d28212d7e60f38f6978d35c4b9564·...·]/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.rs.html#1975-1989">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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"[·...·truncated·by·diffoscope;·len:·1127,·SHA:·2ae34181c1263c39662f6781e8720529c577f99174a1b570c5124252c1d57595·...·]/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#776-786">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:·69c5083908836de827044b18d3e5b81a78136a61ee33d6d3c590ea802b230d36·...·]/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#776-786">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.83.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.83.0/core/f[·...·truncated·by·diffoscope;·len:·1124,·SHA:·18ea9980557882492fedd694f42f06acc74bdfca8ddaac12514849b1cdd73e41·...·]/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.rs.html#2013-2044">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:·831,·SHA:·5f997466932ea072dac6532ab0146a584b7bd25455b4cc3955ec3634109b1fa3·...·]/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.rs.html#2013-2044">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.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·993,·SHA:·a6c858eaf92a81ec96aba642cfc94f12404cbff2530871ff10b352a1b07aa5f8·...·]/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#3862-3883">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">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#3862-3883">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.83.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.83.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">where
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:·107d8be6fab10bf94f45cd9225e5cafd800503ffec3a3033b17cb02377ee351f·...·]/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="https://doc.rust-lang.org/1.83.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:·e7410575ac3a3edb792264872bbe3a60bab7af705dca21719ec557440af82838·...·]/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#3694-3718">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">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#3694-3718">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.83.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">where
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>,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.83.0/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="../../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:·feb3eb58252a609cbe43f429015236321924bab79c9baef5cfda180cd932d919·...·]/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="https://doc.rust-lang.org/1.83.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·B</a>&gt;·+·<a·class="trait"·href="https://doc.r[·...·truncated·by·diffoscope;·len:·586,·SHA:·7c6a11dcfe0cd46e7db67e9abd8f6fd9db0dadf87852952090500ca2928d95ce·...·]/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#2729-2753">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">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#2729-2753">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.83.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">where
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>,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.83.0/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="../../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:·d269b2646b87214b7424d8efd52264ae6cef8139c225ef83d3e120a424d45c50·...·]/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="https://doc.rust-lang.org/1.83.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·B</a>&gt;·+·<a·class="trait"·href="https://doc.r[·...·truncated·by·diffoscope;·len:·582,·SHA:·d65b0507f1499db0c635f137203796339c1ae6fd76bb86bc62fb6e6a856d5c95·...·]/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="../../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:·a9e21566ca66bea1c1d89323c3936f6e55068855199f3132871fb49cedf432d3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/f[·...·truncated·by·diffoscope;·len:·744,·SHA:·398ae4fbca023970c4b4d1f4e004863cda5ab36059f4f1433b741cbd7cc0da78·...·]/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#2945-2965">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:·a8ecdca54ffd53ea5c188cb97be5174400e96f23d4578989cbdae1d6bdee927b·...·]/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#2945-2965">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.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·707,·SHA:·2a39db9bdb180dc8b7fd981284d697a30aed3a0ef652249f9b83fa84fdfc038e·...·]/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; 171178/313170 bytes (54.66%) of diff not shown.
31.6 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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.83.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">where
2 ····Borrowed:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{2 ····Borrowed:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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="../../core/primitive.reference.html">&amp;Borrowed</a>;4 ····fn·<a·href="#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.·This·requires·keeping·additional·information·unnecessary·for·a13 <a·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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>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.83.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.83.0/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="../../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:·10e519c00fe72b276849389edd54b6ea540c98de9a097fec775c8cfe78955358·...·]/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="https://doc.rust-lang.org/1.83.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:·0bfd9fec81b3b7e972c5898d8be7400ab45ef383b08aa62ab1d972a02e0bb07c·...·]/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="../../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:·d945d22ccb8b29059682ba721f0fb7268a3b728ca733143baafc05751fc9334e·...·]/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="https://doc.rust-lang.org/1.83.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:·2c9d2c43572419ab6686fa22d102d463b9ced4b62247e17b4d3c501163d0bae7·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
130 ····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:·9274f5257677713feed958c6ad3117cbff9bca7b2a00ea9c3f58e6b8793a82ab·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where130 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·27f08e0261cb93c2a583fce6de91ef3c10e054f0db2f924aa28110f9315f93e1·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
131 ····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">where131 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·30d29b9439dd36f09d38c31047d2792da074c42a163ce429bad24fcee448f839·...·]/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="../../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:·c01f5f370e384d91d9daf4fc866625662bddf3961edcc746badb1cdc0b034f2a·...·]/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="https://doc.rust-lang.org/1.83.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:·0ecb3cef19509a90b610f85989edbd55291e70029bbf93c3298d4805cc84e412·...·]/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.3 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.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">where
2 ····Borrowed:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{2 ····Borrowed:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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>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.83.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.83.0/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="../../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:·e0b85308a5553f7f869779498c176c882270164a15854d6f2d1826ddc81be585·...·]/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="https://doc.rust-lang.org/1.83.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:·e6a9f6209d654b070c65dc1721444b955bdb98696ba862ac538fd9634ea95b8c·...·]/core/primitive.reference.html">&amp;mut·T</a><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><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">where18 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·cb8af9b7bc414055e835ee4cf46af5c89abd4d79c71811c86d9bb4598f4ac846·...·]/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="../../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:·297df3a1c7a8a6f5adf1f36add56b0aa2015b473185b248fad4e1c5779fa3701·...·]/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="https://doc.rust-lang.org/1.83.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:·e99a4b3e0aecb72d559d0188ba5e0b17c3511f9a14f0869fc1539100fbe03fb7·...·]/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.3 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="../../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="https://doc.rust-lang.org/1.83.0/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="object-safety"·class="section-header">Object·Safety<a·href="#object-safety"·class="anchor">§</a></h2><div·class="object-safety-info">This·trait·is·<b>not</b>·<a·href="https://doc.rust-lang.org/1.83.0/reference/items/traits.html#object-safety">object·safe</a>.</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:·3bc25638813bc8fea755744f5891a3de5b33c50904336901bc46d1eb58bb178e·...·]/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#1026">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="object-safety"·class="section-header">Object·Safety<a·href="#object-safety"·class="anchor">§</a></h2><div·class="object-safety-info">This·trait·is·<b>not</b>·<a·href="https://doc.rust-lang.org/1.83.0/reference/items/traits.html#object-safety">object·safe</a>.</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.83.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:·07e32196b93b1d81f46626337a5d781772395a53c2066b3008476ce7e1ecc991·...·]/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#1026">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="../../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:·cc8cbe014926ccfc32c8e3dce1a83e3f094a680f850a74c184a17c54d05f1387·...·]/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="https://doc.rust-lang.org/1.83.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:·f09073b5ba74a8c2079074ef8b46a8af47ce1fb79aa8481a5a84c9fbe5ed3290·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../core/primitive.array.html"·title="primitive·array">here</a>.·Unfortunately,·it·was·later·found·that·a·similar103 edition,·as·documented·<a·href="https://doc.rust-lang.org/1.83.0/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:
  
911 KB
./usr/share/doc/rust-doc/html/alloc/boxed/struct.Box.html
Max HTML report size reached
80.6 KB
./usr/share/doc/rust-doc/html/alloc/boxed/struct.ThinBox.html
    
Offset 1, 54 lines modifiedOffset 1, 54 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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-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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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-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.83.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>
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="../../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="https://doc.rust-lang.org/1.83.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·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="../../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·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="https://doc.rust-lang.org/1.83.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:·23a72e235b2ea8f561a8df9eb68e99425a61751e67397951d7e7359dea0c01a8·...·]/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="../../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="https://doc.rust-lang.org/1.83.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">where
26 ····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·on26 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·afda8319f1c2f0c67d93cc9a5ff904ba96a0bd8f97aa356eef87f76e92560bad·...·]/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="../../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:·ed096f4dbf68556d4a4cdb25adf1f10c1afe0f24830299aeffecc1c56d828267·...·]/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="https://doc.rust-lang.org/1.83.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:·c2ce4594371ffe6bd6c4c2c05713d5f061064a1ba27efed43969fb9e4bb345ec·...·]/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="../../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>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.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>&gt;·<a·class="trait"[·...·truncated·by·diffoscope;·len:·39,·SHA:·4f512d67bf9473aca991276cf7883a547d5430bf9a341b2b569eee29e799828d·...·]/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="../../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="https://doc.rust-lang.org/1.83.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">where
35 ····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">where35 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·3d21200b90ac057457c74d54372dd140967fa2883e945256d46494aaeea3b166·...·]/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="../../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">where36 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/marker/trait.Sized.html"·title="trait·[·...·truncated·by·diffoscope;·len:·263,·SHA:·e1c657d099bb8e47b710b40a5536548aa0ac76c7a06708cea6eb233c76ba9bfa·...·]/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="../../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">where37 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></sec[·...·truncated·by·diffoscope;·len:·226,·SHA:·3b4dd14ebadb1a511383b9a16f402a557e494d20f248b976bb54dbcaf490740e·...·]/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="../../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:·7377f82a6add4656d00ebd9aec8fdc47952100446f97aafd7aa5ece6057f4ee1·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where38 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/marker/trait.Sized.html"·title="trait·core::mar[·...·truncated·by·diffoscope;·len:·561,·SHA:·95f4409522630d227865434adbaba5dd5d860af74f45e1493399844bb363972f·...·]/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·[·...·truncated·by·diffoscope;·len:·672,·SHA:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·b8ab8ac1cc2cc1dfc3bc940ed349e05673824a92857cb43c3be63178bec2b910·...·]/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="https://doc.rust-lang.org/1.83.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:·26e459c77cb9bf051c3ac640d0b2b3ec4b272937eed48d93c8732b2ebd34408b·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2672-2686">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">where46 </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#2672-2686">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
47 ····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:·b3522f6656a75b8786d727c522d67358e29dfa2964a2f89c2aa386e5cf9583ce·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where47 ····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.83.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:·4e66fd818d0db79470c3c05df8933adf2420d3b968fd4ca310e2824aa93e7fa4·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
48 ····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:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where48 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
49 ····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:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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·to61 <p>Either·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.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,·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="../../../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="https://doc.rust-lang.org/1.83.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·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="../../../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>234 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../../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>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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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; 131915/170597 bytes (77.33%) of diff not shown.
302 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.Drain.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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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:·ca85b550dfff2bbda2c10490544ffec72df6e1d3b5cfd7804f725a81d7dc70e4·...·]/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="https://doc.rust-lang.org/1.83.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:·64da8806a1d63d55bd20a76f959e59414a1bd86c2858456a65eeebc5ff9ed983·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,6 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,7 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes8 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,11 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
12 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·b3b70f2bd58e1716ab4db7bf372dddbe9134bc6f185c2648ce7ec695299c4102·...·]/core/primitive.usize.html">usize</a>&gt;(14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7080,·SHA:·231ea7ef44b83f9d296cf27347e6ff89097c9ca2ed9e016680e6c9d56182c71d·...·]/core/primitive.usize.html">usize</a>&gt;(
15 ····&amp;mut·self,15 ····&amp;mut·self,
16 )·-&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">where16 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
18 ····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:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
21 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where25 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>27 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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;·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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
31 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element35 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
40 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
52 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····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,·but54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,57 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
58 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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">where58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····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>·over60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
61 <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 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
62 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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where62 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:[·...·truncated·by·diffoscope;·len:·650,·SHA:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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">where65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
67 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
68 ····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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,69 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,72 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
74 ····T:·'a,74 ····T:·'a,
75 ····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;,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
76 ····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,76 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
77 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.77 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
78 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where78 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,80 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../../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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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="https://doc.rust-lang.org/1.83.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·returns
85 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the88 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
89 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
92 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·reducing94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../../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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(95 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../../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">where98 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·the101 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
103 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where108 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../../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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,116 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
117 ····&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·returns117 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where118 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iter[·...·truncated·by·diffoscope;·len:·997,·SHA:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
121 ····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>,121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
122 ····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·its122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
123 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,124 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
125 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····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·the126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
127 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where127 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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; 80477/308935 bytes (26.05%) of diff not shown.
285 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.DrainSorted.html
    
Offset 1, 198 lines modifiedOffset 1, 198 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.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>
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="../../../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:·3ef8b0374309f8403a88a2098e95d820d579036a17a4f30792daa5f147e7c033·...·]/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="https://doc.rust-lang.org/1.83.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:·01925e92a45ad91dc14ef4e01dd44c86fe2ae1247fc04b1ce0e15e98ded83a7e·...·]/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="../../../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:·c6f67f0e77ec2a2a58fa34dc9c2663d304fd9d0357b39e456298966378cb0de9·...·]/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="https://doc.rust-lang.org/1.83.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:·5711dea63dd6879f0347e941b162f9080dbbf553b5efcddfb8fb26728bf01940·...·]/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="../../../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:·7f35ff6678b8b7b44da397cd16a6d891189532a525f032baf67bde0b7a056270·...·]/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="https://doc.rust-lang.org/1.83.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:·096bb97bea150271e86b5f2d55761840d8a5ce137a8b8a3c782f5d8b7b1fac79·...·]/core/primitive.usize.html">usize</a>&gt;(
7 ····&amp;mut·self,7 ····&amp;mut·self,
8 )·-&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">where8 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
10 ····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:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
13 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
18 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····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 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·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="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="https://doc.rust-lang.org/1.83.0/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::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="https://doc.rust-lang.org/1.83.0/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:[·...·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·element27 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
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"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="https://doc.rust-lang.org/1.83.0/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::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="https://doc.rust-lang.org/1.83.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·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"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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"·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>·methods33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="https://doc.rust-lang.org/1.83.0/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:[·...·truncated·by·diffoscope;·len:·1042,·SHA:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="https://doc.rust-lang.org/1.83.0/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:[·...·truncated·by·diffoscope;·len:·890,·SHA:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="https://doc.rust-lang.org/1.83.0/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::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="https://doc.rust-lang.org/1.83.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·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="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../../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,·but46 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.0/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::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="https://doc.rust-lang.org/1.83.0/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[·...·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>·over52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
53 <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>,53 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/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"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="https://doc.rust-lang.org/1.83.0/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:[·...·truncated·by·diffoscope;·len:·650,·SHA:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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[·...·truncated·by·diffoscope;·len:·427,·SHA:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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[·...·truncated·by·diffoscope;·len:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/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="https://doc.rust-lang.org/1.83.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.83.0/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_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/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="https://doc.rust-lang.org/1.83.0/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="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;,64 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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:[·...·truncated·by·diffoscope;·len:·804,·SHA:·ba5d8dc13415690639b34c34af73e313c8bb191158452ecb8371fc5c136768a7·...·]/core/primitive.bool.html">bool</a><div·class="where">where65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/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="https://doc.rust-lang.org/1.83.0/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::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,67 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
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="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.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.83.0/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="https://doc.rust-lang.org/1.83.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·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"[·...·truncated·by·diffoscope;·len:·249,·SHA:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the75 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·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"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.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.83.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,
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="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="https://doc.rust-lang.org/1.83.0/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::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·reducing81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(82 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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::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,84 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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</[·...·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">where85 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.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.83.0/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</[·...·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·the88 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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=[·...·truncated·by·diffoscope;·len:·380,·SHA:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/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="https://doc.rust-lang.org/1.83.0/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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/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="https://doc.rust-lang.org/1.83.0/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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="https://doc.rust-lang.org/1.83.0/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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="https://doc.rust-lang.org/1.83.0/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::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·returns97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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</[·...·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">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../../core/primitive.bool.html">bool</a>&gt;,103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/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</[·...·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·returns104 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where105 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/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="https://doc.rust-lang.org/1.83.0/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::Iter[·...·truncated·by·diffoscope;·len:·998,·SHA:·c360a4ee431d3893fe8628996760b71481359f5bb66d99199e3c116b26b49117·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·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"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/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="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="https://doc.rust-lang.org/1.83.0/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:[·...·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·the113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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"·tit[·...·truncated·by·diffoscope;·len:·518,·SHA:·4aaf56d48604411272d713592bc4d0679dd000fc2f281a96b049147b915fc194·...·]/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="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·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"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·61552b1c1239cc6cc3e89b0aea7384e7e2ab53bd5c80152b0552dfef70b8e441·...·]/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="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="https://doc.rust-lang.org/1.83.0/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:[·...·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·minimum·value·with·respect·to·the120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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="S[·...·truncated·by·diffoscope;·len:·386,·SHA:·fe8bee3db36777bfea761e0c2fb3831d1af914b48db484031233fcedd5739256·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where121 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/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="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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="primit[·...·truncated·by·diffoscope;·len:·812,·SHA:·a59284f611b878d41e6f7c7cdc90228b7b33e22ff7207d9646678123b9b10d40·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/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="https://doc.rust-lang.org/1.83.0/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="primit[·...·truncated·by·diffoscope;·len:·815,·SHA:·d22a65b4a6c05ec14ccdf73eeab35766112dfb3af41a0b15f8eabe9a5e036e50·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/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="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,
Max diff block lines reached; 82027/292069 bytes (28.08%) of diff not shown.
321 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.IntoIter.html
    
Offset 1, 226 lines modifiedOffset 1, 226 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·`BinaryHeap`."><title>IntoIter·in·alloc::collections::binary_heap·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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="#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-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-Default-for-IntoIter%3CT%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-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">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/binary_heap/mod.rs.html#1515-1520">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>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·owning·iterator·over·the·elements·of·a·`BinaryHeap`."><title>IntoIter·in·alloc::collections::binary_heap·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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="#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-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-Default-for-IntoIter%3CT%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-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">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/binary_heap/mod.rs.html#1515-1520">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>BinaryHeap</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.BinaryHeap.html#method.into_iter"·title="method·alloc::collections::binary_heap::BinaryHeap::into_iter"><code>BinaryHeap::into_iter()</code></a>2 <p>This·<code>struct</code>·is·created·by·<a·href="struct.BinaryHeap.html#method.into_iter"·title="method·alloc::collections::binary_heap::BinaryHeap::into_iter"><code>BinaryHeap::into_iter()</code></a>
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>3 (provided·by·the·<a·href="https://doc.rust-lang.org/1.83.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>
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-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1522-1528">source</a><a·href="#impl-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>&gt;·<a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::collections::binary_heap::IntoIter">IntoIter</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#1525-1527">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>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-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1522-1528">source</a><a·href="#impl-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>&gt;·<a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::collections::binary_heap::IntoIter">IntoIter</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#1525-1527">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.83.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>
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-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/binary_heap/mod.rs.html#1514">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:·4471,·SHA:·f12802ec23b47767c343adaaef953e962d72b9fc898f6f0c3fadc37c1d4f0313·...·]/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::IntoIter</code>.</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-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/binary_heap/mod.rs.html#1514">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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·[·...·truncated·by·diffoscope;·len:·4711,·SHA:·6e61d33dc2b064c3c7f80bc4b53a935ecfb478c4dc670bed459d6af0d31afbf2·...·]/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::IntoIter</code>.</p>
  
6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·binary_heap::IntoIter&lt;u8&gt;·=·Default::default();6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·binary_heap::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::binary_heap;%0A++++let+iter:+binary_heap::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::binary_heap;%0A++++let+iter:+binary_heap::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/binary_heap/mod.rs.html#1553-1558">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>&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.IntoIter.html"·title="struct·alloc::collections::binary_he[·...·truncated·by·diffoscope;·len:·3805,·SHA:·828eefbbf560c87b1329b9254c99e2ab635dc28474496aed786224ec75d88059·...·]/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/binary_heap/mod.rs.html#1553-1558">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>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.IntoIter.html"·title="struct·alloc[·...·truncated·by·diffoscope;·len:·4285,·SHA:·b2d1bf87070588d53b75ad4ccfad9e8440d980dd0ab0c355099206f45e0ef5dd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·6486,·SHA:·c448d0eb0dff6d148bbf9fabfaae6ca622b67b8f291423bd66e52d83101821e3·...·]/core/primitive.usize.html">usize</a>&gt;(17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7086,·SHA:·5255e010b2386423b119cf90f59d68bccb70e4b95ded9f800e353e194e25c8cb·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self,18 ····&amp;mut·self,
19 )·-&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">where19 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
21 ····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:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
24 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
34 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
43 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
55 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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>·over63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
77 ····T:·'a,77 ····T:·'a,
78 ····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;,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
79 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
81 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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,83 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
84 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where84 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
88 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where88 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
92 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where92 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
95 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where95 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/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::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·reducing97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
98 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</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>(Self::<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,100 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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</[·...·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">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="https://doc.rust-lang.org/1.83.0/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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</[·...·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·the104 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
105 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
114 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
120 ····&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·returns120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
121 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iter[·...·truncated·by·diffoscope;·len:·997,·SHA:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
124 ····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>,124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
125 ····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·its125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
126 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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; 91375/328643 bytes (27.80%) of diff not shown.
298 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.IntoIterSorted.html
    
Offset 1, 201 lines modifiedOffset 1, 201 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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.83.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>
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:·b4d93adf485ca26521156c7aee3351912017069ba10f63a6b823806155d434c4·...·]/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="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·[·...·truncated·by·diffoscope;·len:·10429,·SHA:·4792f06fc5eb6e99439f0226d1531764642bc71a1fa81bceba1fef8f313430b5·...·]/core/primitive.usize.html">usize</a>&gt;(
3 ····&amp;mut·self,3 ····&amp;mut·self,
4 )·-&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">where4 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where5 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
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'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
9 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
11 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where13 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
14 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····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>15 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
16 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where16 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
17 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
18 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each18 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
19 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where19 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
20 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:[·...·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·element23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
24 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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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">where24 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where26 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<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><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
28 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where28 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="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>·methods29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
30 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See30 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
31 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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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">where31 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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">where33 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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">where35 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
38 ····Self:·<a·class="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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
39 ····Self:·<a·class="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·fewer39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
40 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where40 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
41 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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.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,·but42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
43 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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where43 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,45 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
46 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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">where46 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····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>·over48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
49 <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>,49 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
50 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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where50 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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">where53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
54 ····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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
55 ····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;,55 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
56 ····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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
57 ····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;,57 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
58 ····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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
59 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····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;,60 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
61 ····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:·ba5d8dc13415690639b34c34af73e313c8bb191158452ecb8371fc5c136768a7·...·]/core/primitive.bool.html">bool</a><div·class="where">where61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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,63 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
64 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where64 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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,66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
67 ····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·returns67 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
68 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where68 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
69 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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·=·<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·the71 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
72 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where72 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
73 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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,74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
75 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where75 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
78 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(78 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
79 ····&amp;mut·self,79 ····&amp;mut·self,
80 ····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,80 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
81 )·-&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">where81 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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;,83 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
84 ····&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·the84 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
85 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where85 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<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="https://doc.rust-lang.org/1.83.0/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::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·returns93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
94 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(94 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
95 ····&amp;mut·self,95 ····&amp;mut·self,
96 ····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,96 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where97 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····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;,99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
100 ····&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·returns100 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
101 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where101 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·998,·SHA:·c360a4ee431d3893fe8628996760b71481359f5bb66d99199e3c116b26b49117·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where103 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,104 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····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·the106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
107 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····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·the109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
110 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:·4aaf56d48604411272d713592bc4d0679dd000fc2f281a96b049147b915fc194·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where110 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,111 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
112 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·minimum·value·from·the113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
114 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"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·61552b1c1239cc6cc3e89b0aea7384e7e2ab53bd5c80152b0552dfef70b8e441·...·]/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·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····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·minimum·value·with·respect·to·the116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
117 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="S[·...·truncated·by·diffoscope;·len:·386,·SHA:·fe8bee3db36777bfea761e0c2fb3831d1af914b48db484031233fcedd5739256·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where117 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
118 ····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;,118 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
119 ····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;,119 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
120 ····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="primit[·...·truncated·by·diffoscope;·len:·812,·SHA:·a59284f611b878d41e6f7c7cdc90228b7b33e22ff7207d9646678123b9b10d40·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
121 ····T:·'a·+·<a·class="trait"·href="../../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,121 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
122 ····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="primit[·...·truncated·by·diffoscope;·len:·815,·SHA:·d22a65b4a6c05ec14ccdf73eeab35766112dfb3af41a0b15f8eabe9a5e036e50·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
123 ····T:·'a·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,123 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,
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="primit[·...·truncated·by·diffoscope;·len:·939,·SHA:·114ebf54e490cfb70af969ced3a6e4fdedb7156ed00d43b31c99b8ff474d8749·...·]/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">where124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1155,·SHA:·71a9c4b27e0055da0965cc3108f812a4ea2b36f4852011f565d6784cb5fb0e50·...·]/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
125 ····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_arra[·...·truncated·by·diffoscope;·len:·709,·SHA:·c3199092fd20aa550847b6864cdaecb0590e18f758ec8c2be48ca345645e95b4·...·]/core/iter/traits/iterator/trait.Iterator.html#method.sum"·class="fn">sum</a>&lt;S&gt;(self)·-&gt;·S<div·class="where">where125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·805,·SHA:·db821f83ebf184bf07a7ca8ac583e86450594bcadd34e549d62fba85a8c073c6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.sum"·class="fn">sum</a>&lt;S&gt;(self)·-&gt;·S<div·class="where">where
126 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····S:·<a·class="trait"·href="../../../core/iter/traits/accum/trait.Sum.html"·title="trait·core::iter::traits::accum::Sum">Sum</a>&lt;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterat[·...·truncated·by·diffoscope;·len:·619,·SHA:·6cd6275b303e2be9f3c43e9e5ecbd48bf5b63b81a8b87219d9dc92f2d89ad0ea·...·]/core/iter/traits/iterator/trait.Iterator.html#method.product"·class="fn">product</a>&lt;P&gt;(self)·-&gt;·P<div·class="where">where127 ····S:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/accum/trait.Sum.html"·title="trait·core::iter::traits::accum::Sum">Sum</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedt[·...·truncated·by·diffoscope;·len:·739,·SHA:·408508692ba3c37258d190a20eafb696aebe5aef65aa2b970326dec286fb9403·...·]/core/iter/traits/iterator/trait.Iterator.html#method.product"·class="fn">product</a>&lt;P&gt;(self)·-&gt;·P<div·class="where">where
Max diff block lines reached; 93451/304772 bytes (30.66%) of diff not shown.
313 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.Iter.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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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="../../../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:·5575683bb4baf290d572298e534eac6bdb26ebcb54149f21045dfcd8dcc912c9·...·]/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="https://doc.rust-lang.org/1.83.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:·bd395448d11985c800fcf8e7256e8302e06dfb61ebbbeb216d0a0090f4c41c44·...·]/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="../../../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:·b88187ab85a01414abfbae31f552b7bdccd5a05f48ea57b2975384ebe16ef98c·...·]/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="https://doc.rust-lang.org/1.83.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:·b680c2767e26b2707e1750293590f37e476412d879adaac516b87b1f6d5f0791·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·66b62789e7da5b3c0176146aabe138dd7abcaea62224e7d7820233aed6dfae69·...·]/core/primitive.usize.html">usize</a>&gt;(16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7919,·SHA:·008aeae344ae54ff51bd1d0bf875cb91b2ef0eb41d8229dee3c52e3fe704c915·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&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">where18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</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><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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
22 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>28 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
32 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element36 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
41 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
53 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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,·but55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,58 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
59 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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">where59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····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>·over61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
62 <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>,62 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
63 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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where63 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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">where66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
68 ····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;,68 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
69 ····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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
70 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
74 ····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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
75 ····T:·'a,75 ····T:·'a,
76 ····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;,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
77 ····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,77 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.78 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
79 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where79 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where82 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
86 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where86 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
87 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
89 ····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·the89 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
90 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where90 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
91 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where93 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
96 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(96 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 )·-&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">where99 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
102 ····&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·the102 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
103 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where109 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
110 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
112 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(112 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
113 ····&amp;mut·self,113 ····&amp;mut·self,
114 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where115 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
118 ····&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·returns118 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
119 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where119 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····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>,122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
123 ····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·its123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
124 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,125 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
126 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 86749/320094 bytes (27.10%) of diff not shown.
59.0 KB
./usr/share/doc/rust-doc/html/alloc/collections/binary_heap/struct.PeekMut.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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-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.83.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·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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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:·8e97687f30995e4e94819f51999d4745d283afeb6c5dc04c5a10eec8ce600809·...·]/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="https://doc.rust-lang.org/1.83.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:·7a64e3232931509e6ddee8840d6f13e4d4c72d6c7d35e1d765afcfe26bbccefd·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,7 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
8 ····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">where8 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·adc38adcdf190d972fe6392cdc6939cc558eec1b0bae1b0310f2d13d5d04f9c4·...·]/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="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,9 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
10 ····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">where10 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·6dd491f7d42004176891ae900aab908bbf983b95900a450aa3bf193803a32a37·...·]/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="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,11 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
12 ····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:·0e74e5607e442773de66f02f355a62d5daef8760c192c7b6ca7df92ec8439cd5·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where12 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·be349a464c1b4eab94f52bd1a8e276ef51f13167ad9b5badd5cf4ee26fd78c8b·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·747c7386c78d143df32a87bc5392f871c446e3ebe1cc7a6c5b26d40164aaf5ef·...·]/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="https://doc.rust-lang.org/1.83.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:·8ce9177d818d5d0bda38ff64fd6045887c1cc85720e02f055745b88c86a2f6f5·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.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.83.0/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.7 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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;·{1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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.83.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;·{
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="../../../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:·7d9af6e2aaa73229a9f5a7bb9f5cc21cff36ec61a1542fefe4348cba26c6e9e3·...·]/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="https://doc.rust-lang.org/1.83.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:·9b26e469ae0cec4d812e63173ef5f91fe3f236bec56dd06244791bafaea44eb0·...·]/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="../../../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,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.83.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.83.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,
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="../../../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>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.83.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.83.0/core/primitive.reference.html">&amp;K</a>)·-&gt;·V&gt;(self,·default:·F)·[·...·truncated·by·diffoscope;·len:·65,·SHA:·ec8ba75646cc3fb1b6c46835f040014f31e37a6b81db8b7e0c6249d827028932·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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·any39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·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="../../../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:·70a64c5fc3473581ccbb12bfe048791ab1dbfa548377e0d6171a59ed1bf03906·...·]/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="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>,·A:·<a·class="trait[·...·truncated·by·diffoscope;·len:·853,·SHA:·86688c5aaa6df2adb6d2c6e95da9294ff7df7ae99b51e870a25025df0dcdce51·...·]/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="../../../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:·01e2c5efe8f68a1721849c1e0663ab508abe16c040bb67f3126d510a4d6da6a5·...·]/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="https://doc.rust-lang.org/1.83.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:·c3c125f11ed67ef8588b15d7bf3dce5feac45fdfe3027ef4017c72f22cbc90be·...·]/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="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,71 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,
72 ····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">where72 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·72479a3d2b0bb73a80e02348c8de96332d622da837fba8dc03dabe424517dca2·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,73 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,74 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
75 ····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">where75 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·8697257880e2e7a2a87caf1e53ab3479374a69a8b442acf1787c209e933e379a·...·]/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="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,76 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,77 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
78 ····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">where78 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·0f9b1d703698a9cf3fce85b0d805fe5473a222c8290fdffb0a9db01f7ef2f87c·...·]/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="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,79 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,80 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
81 ····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">where81 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·81c48e0bd226e892a72938c59fd733400c71e0a875da179a0f002bee0eae3b23·...·]/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="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,82 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,
83 ····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:·cd0dd0d0186ae23f5c24e3e8c5c3d33719e64dc7b4ade53ea458422523523bf3·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where83 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·742c81936657cd7c1d16aa021a88e6a1286aca178fcca09c8372bc4c07e70a7c·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·747c7386c78d143df32a87bc5392f871c446e3ebe1cc7a6c5b26d40164aaf5ef·...·]/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="https://doc.rust-lang.org/1.83.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:·8ce9177d818d5d0bda38ff64fd6045887c1cc85720e02f055745b88c86a2f6f5·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../../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:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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>
300 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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.26 normally·only·possible·through·<a·href="https://doc.rust-lang.org/1.83.0/core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>,·<a·href="https://doc.rust-lang.org/1.83.0/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#634-677">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#648-656">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#634-677">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.83.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#648-656">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, 149 lines modifiedOffset 128, 149 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#679-1484">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:·2758f8f881f8a75880a37457662a67d300349bb2a099081be4c2ae6bed259e72·...·]/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#679-1484">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.83.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:·43cb3128d89c945123bb7aca4484e30f09a90c0480255e30d8d2d4fd68e67449·...·]/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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,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.83.0/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>135 ····Q:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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#724-734">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">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#724-734">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.83.0/core/primitive.reference.html">&amp;Q</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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:·18ca2d75bedcfd1d1e9e87d41810ed6665a4634a8c81f036c1ee8656d42e84f2·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
146 ····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.</p>146 ····Q:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.</p>
147 <p>The·supplied·key·may·be·any·borrowed·form·of·the·map’s·key·type,·but·the·ordering147 <p>The·supplied·key·may·be·any·borrowed·form·of·the·map’s·key·type,·but·the·ordering
148 on·the·borrowed·form·<em>must</em>·match·the·ordering·on·the·key·type.</p>148 on·the·borrowed·form·<em>must</em>·match·the·ordering·on·the·key·type.</p>
149 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>149 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
150 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;150 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
151 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();151 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
152 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);152 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);
153 <span·class="macro">assert_eq!</span>(map.get_key_value(<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="number">1</span>,·<span·class="kw-2">&amp;</span><span·class="string">"a"</span>)));153 <span·class="macro">assert_eq!</span>(map.get_key_value(<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="number">1</span>,·<span·class="kw-2">&amp;</span><span·class="string">"a"</span>)));
154 <span·class="macro">assert_eq!</span>(map.get_key_value(<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_key_value(%261),+Some((%261,+%26%22a%22)));%0A++++assert_eq!(map.get_key_value(%262),+None);%0A%7D&amp;edition=2021"></a></div>154 <span·class="macro">assert_eq!</span>(map.get_key_value(<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_key_value(%261),+Some((%261,+%26%22a%22)));%0A++++assert_eq!(map.get_key_value(%262),+None);%0A%7D&amp;edition=2021"></a></div>
155 </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#751-757">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">where155 </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#751-757">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·f83be15ab25c8676bb6011a7641d508dc2122592e785154f82a8ceaa4615149a·...·]/core/primitive.reference.html">&amp;V</a>)&gt;<div·class="where">where
156 ····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.156 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.
157 The·key·in·this·pair·is·the·minimum·key·in·the·map.</p>157 The·key·in·this·pair·is·the·minimum·key·in·the·map.</p>
158 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>158 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
159 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;159 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
160 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();160 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
161 <span·class="macro">assert_eq!</span>(map.first_key_value(),·<span·class="prelude-val">None</span>);161 <span·class="macro">assert_eq!</span>(map.first_key_value(),·<span·class="prelude-val">None</span>);
162 map.insert(<span·class="number">1</span>,·<span·class="string">"b"</span>);162 map.insert(<span·class="number">1</span>,·<span·class="string">"b"</span>);
163 map.insert(<span·class="number">2</span>,·<span·class="string">"a"</span>);163 map.insert(<span·class="number">2</span>,·<span·class="string">"a"</span>);
164 <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>164 <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>
165 </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#779-792">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">where165 </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#779-792">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.83.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">where
166 ····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.166 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.
167 The·key·of·this·entry·is·the·minimum·key·in·the·map.</p>167 The·key·of·this·entry·is·the·minimum·key·in·the·map.</p>
168 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>168 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
169 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;169 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
170 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();170 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
171 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);171 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);
172 map.insert(<span·class="number">2</span>,·<span·class="string">"b"</span>);172 map.insert(<span·class="number">2</span>,·<span·class="string">"b"</span>);
173 <span·class="kw">if·let·</span><span·class="prelude-val">Some</span>(<span·class="kw-2">mut·</span>entry)·=·map.first_entry()·{173 <span·class="kw">if·let·</span><span·class="prelude-val">Some</span>(<span·class="kw-2">mut·</span>entry)·=·map.first_entry()·{
174 ····<span·class="kw">if·</span><span·class="kw-2">*</span>entry.key()·&gt;·<span·class="number">0·</span>{174 ····<span·class="kw">if·</span><span·class="kw-2">*</span>entry.key()·&gt;·<span·class="number">0·</span>{
175 ········entry.insert(<span·class="string">"first"</span>);175 ········entry.insert(<span·class="string">"first"</span>);
176 ····}176 ····}
177 }177 }
178 <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>);178 <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>);
179 <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>179 <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>
180 </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#813-818">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">where180 </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#813-818">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.tuple.html">(K,·V)</a>&gt;<div·class="where">where
181 ····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.181 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.
182 The·key·of·this·element·is·the·minimum·key·that·was·in·the·map.</p>182 The·key·of·this·element·is·the·minimum·key·that·was·in·the·map.</p>
183 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>183 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
184 <p>Draining·elements·in·ascending·order,·while·keeping·a·usable·map·each·iteration.</p>184 <p>Draining·elements·in·ascending·order,·while·keeping·a·usable·map·each·iteration.</p>
  
185 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;185 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
186 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();186 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
187 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);187 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);
188 map.insert(<span·class="number">2</span>,·<span·class="string">"b"</span>);188 map.insert(<span·class="number">2</span>,·<span·class="string">"b"</span>);
189 <span·class="kw">while·let·</span><span·class="prelude-val">Some</span>((key,·_val))·=·map.pop_first()·{189 <span·class="kw">while·let·</span><span·class="prelude-val">Some</span>((key,·_val))·=·map.pop_first()·{
190 ····<span·class="macro">assert!</span>(map.iter().all(|(k,·_v)|·<span·class="kw-2">*</span>k·&gt;·key));190 ····<span·class="macro">assert!</span>(map.iter().all(|(k,·_v)|·<span·class="kw-2">*</span>k·&gt;·key));
191 }191 }
192 <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>192 <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>
193 </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#834-840">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">where193 </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#834-840">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·f83be15ab25c8676bb6011a7641d508dc2122592e785154f82a8ceaa4615149a·...·]/core/primitive.reference.html">&amp;V</a>)&gt;<div·class="where">where
194 ····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.194 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.
195 The·key·in·this·pair·is·the·maximum·key·in·the·map.</p>195 The·key·in·this·pair·is·the·maximum·key·in·the·map.</p>
196 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>196 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
197 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;197 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
198 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();198 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
199 map.insert(<span·class="number">1</span>,·<span·class="string">"b"</span>);199 map.insert(<span·class="number">1</span>,·<span·class="string">"b"</span>);
200 map.insert(<span·class="number">2</span>,·<span·class="string">"a"</span>);200 map.insert(<span·class="number">2</span>,·<span·class="string">"a"</span>);
201 <span·class="macro">assert_eq!</span>(map.last_key_value(),·<span·class="prelude-val">Some</span>((<span·class="kw-2">&amp;</span><span·class="number">2</span>,·<span·class="kw-2">&amp;</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++++map.insert(1,+%22b%22);%0A++++map.insert(2,+%22a%22);%0A++++assert_eq!(map.last_key_value(),+Some((%262,+%26%22a%22)));%0A%7D&amp;edition=2021"></a></div>201 <span·class="macro">assert_eq!</span>(map.last_key_value(),·<span·class="prelude-val">Some</span>((<span·class="kw-2">&amp;</span><span·class="number">2</span>,·<span·class="kw-2">&amp;</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++++map.insert(1,+%22b%22);%0A++++map.insert(2,+%22a%22);%0A++++assert_eq!(map.last_key_value(),+Some((%262,+%26%22a%22)));%0A%7D&amp;edition=2021"></a></div>
202 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last_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#862-875">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.last_entry"·class="fn">last_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">where202 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last_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#862-875">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.last_entry"·class="fn">last_entry</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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">where
203 ····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·entry·in·the·map·for·in-place·manipulation.203 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·the·last·entry·in·the·map·for·in-place·manipulation.
Max diff block lines reached; 253835/307509 bytes (82.55%) 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#2816-2820">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#2816-2820">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#2908-2968">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#2915-2928">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·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#2908-2968">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#2915-2928">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc[·...·truncated·by·diffoscope;·len:·21,·SHA:·fdc7c5f255441895e6c00ce5fd607e080984f0acbf9687d7ea5fc0003ee8faea·...·]/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#2936-2949">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·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#2936-2949">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc[·...·truncated·by·diffoscope;·len:·21,·SHA:·fdc7c5f255441895e6c00ce5fd607e080984f0acbf9687d7ea5fc0003ee8faea·...·]/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#2956-2958">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·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#2956-2958">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc[·...·truncated·by·diffoscope;·len:·21,·SHA:·fdc7c5f255441895e6c00ce5fd607e080984f0acbf9687d7ea5fc0003ee8faea·...·]/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#2965-2967">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·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#2965-2967">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc[·...·truncated·by·diffoscope;·len:·21,·SHA:·fdc7c5f255441895e6c00ce5fd607e080984f0acbf9687d7ea5fc0003ee8faea·...·]/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#2823-2828">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:·bae54cafe02e6415b5f73a755dffa5caefdef2501bc07d8caf6f6bfb4d6420f6·...·]/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#2823-2828">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.83.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:·ae138a4e9c8932820cac5dd8000fdaedbc53708baa76d371549f74b26055e5be·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,21 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
22 ····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">where22 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·2ceda4511d7ff6b52dd557c4c162357de36cb67ae8147776b7c197893aaa99ec·...·]/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="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,23 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
24 ····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">where24 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·5924c918f7260f5759c697f3904bd0a42af26c90cad68b0a44d7aa32fe6c885a·...·]/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="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,25 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
26 ····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">where26 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·7a5c089314cd6ad578bfd75874ac71d5076d13c20c604fab16bd440623473f97·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,27 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
28 ····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:·7e15b9b0d422bd465a639539b8b90816ab7adb3072cd21490eac9f166da2fc2b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where28 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a03a1474362a82e4fba0d79578e0660d420492b00c3248fa6dca2e795990bbd5·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where31 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
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:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·a7d1f388ba07396e87261271b8aa586ab0c147478908836ee7ff521ef25e555e·...·]/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="https://doc.rust-lang.org/1.83.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:·e3c2dfd0abdfa96e39e7563c61a47234eecf86fd351479c84cf8586392bfaf0c·...·]/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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#2970-3038">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#2977-2980">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·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#2970-3038">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#2977-2980">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·f83be15ab25c8676bb6011a7641d508dc2122592e785154f82a8ceaa4615149a·...·]/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#2988-2991">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·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#2988-2991">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·f83be15ab25c8676bb6011a7641d508dc2122592e785154f82a8ceaa4615149a·...·]/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#2998-3001">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·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#2998-3001">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·f83be15ab25c8676bb6011a7641d508dc2122592e785154f82a8ceaa4615149a·...·]/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#3008-3011">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·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#3008-3011">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·f83be15ab25c8676bb6011a7641d508dc2122592e785154f82a8ceaa4615149a·...·]/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#3020-3022">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#3020-3022">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#3337-3421">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#3352-3354">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#3337-3421">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.83.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:·55cd04d2184ce77088f47047f56739f6d4ce84487d951f1a8985861b668c4d02·...·]/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#3352-3354">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#3385-3387">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#3385-3387">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="../../../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·the64 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.0/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#3400-3402">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#3400-3402">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="../../../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·the76 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.0/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#3409-3411">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 </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#3409-3411">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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#3418-3420">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 </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#3418-3420">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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#2860-2864">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#2861-2863">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">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#2860-2864">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#2861-2863">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.83.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:·3667254aa279aaca8a87ede22989cb0741ca19f30f94bdf1619fd95cfee11f79·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,91 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,92 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
93 ····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">where93 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·3455ed70fd207a264f83097bba180635f24fbdd0f9b3bcfc0472d23d34bbd7a3·...·]/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="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,94 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,95 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
96 ····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">where96 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·37ff352d03fac52474f501be2f6a176bbffc60095b714f8890b9e01dabd6abaf·...·]/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="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,97 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,98 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
99 ····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:·9f592a6ab63929cf81682918945c87cafc36c6b3b4d4b468d81d2de137df3c1b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where99 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·478aa6ce516823a9294ba5b17e5be76dbddfdfb615619da1fb886ca3410f89eb·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·747c7386c78d143df32a87bc5392f871c446e3ebe1cc7a6c5b26d40164aaf5ef·...·]/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="https://doc.rust-lang.org/1.83.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:·8ce9177d818d5d0bda38ff64fd6045887c1cc85720e02f055745b88c86a2f6f5·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../../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:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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#3040-3129">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#3047-3064">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·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#3040-3129">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#3047-3064">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·22,·SHA:·fa434a1fc8d3a70a51209a22ae7a7114adb7cd229b3dccb314ef93e3936ddf11·...·]/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#3072-3089">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·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#3072-3089">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·22,·SHA:·fa434a1fc8d3a70a51209a22ae7a7114adb7cd229b3dccb314ef93e3936ddf11·...·]/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#3096-3101">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·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#3096-3101">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·22,·SHA:·fa434a1fc8d3a70a51209a22ae7a7114adb7cd229b3dccb314ef93e3936ddf11·...·]/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#3108-3113">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·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#3108-3113">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·22,·SHA:·fa434a1fc8d3a70a51209a22ae7a7114adb7cd229b3dccb314ef93e3936ddf11·...·]/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#3122-3128">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#3122-3128">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#3132-3335">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#3147-3174">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#3132-3335">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.83.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:·55cd04d2184ce77088f47047f56739f6d4ce84487d951f1a8985861b668c4d02·...·]/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#3147-3174">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#3233-3248">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#3233-3248">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="../../../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·the63 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.0/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#3261-3276">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#3261-3276">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="../../../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·the75 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.0/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#3283-3305">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>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#3283-3305">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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 <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#3312-3334">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>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#3312-3334">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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 <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#2902-2906">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#2903-2905">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">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#2902-2906">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#2903-2905">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.83.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:·497e865104cc589672223e65d4fce2bce3f7002acd52ae2e32216b295d64ee4b·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,90 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,91 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
92 ····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">where92 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a76f938fba7a137537d1bbdc2c40b339f1d72d3bc345f56bece82f6d1fd3944b·...·]/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="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,93 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,94 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
95 ····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">where95 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·2ec2d301aa8221713aebc2cab37ab00637cb30fe8ff758501a54e42d85f00850·...·]/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="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,96 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,97 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
98 ····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:·8427a5982577d54f327df1707256a92b6457092cf23111640223204cae8b054f·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where98 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·54d9c88931329f7f80595d3c5b35d03c9c99962969a197218e3f32f0eb97fce9·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·747c7386c78d143df32a87bc5392f871c446e3ebe1cc7a6c5b26d40164aaf5ef·...·]/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="https://doc.rust-lang.org/1.83.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:·8ce9177d818d5d0bda38ff64fd6045887c1cc85720e02f055745b88c86a2f6f5·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../../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:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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>
276 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.ExtractIf.html
    
Offset 1, 210 lines modifiedOffset 1, 210 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#1877-1890">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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#1877-1890">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.83.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">where
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>2 ····F:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·139,·SHA:·50ceed79c6fe4ef09b02e05c84222e14640bf4114d7448ac7146e2fc0674ef4b·...·]/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#1906-1915">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#1906-1915">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="../../../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:·e1d1834afcc3f9187261614b91023e0599e79d20a517700f19cc2134aa5e7bea·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·1654,·SHA:·e0f158b11a3ebe995f89a4e9e63230039f9ed1c7d4e91027c8cb1f02a7f1cf61·...·]/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="../../../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:·1c40cd307c5f09bfc3e4f9edd60f15ca53e3198fa5c67eaa6a51e00a28306ad6·...·]/core/primitive.usize.html">usize</a>&gt;(7 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·3261,·SHA:·1458fc222e32e756583ac55b6c8e1f5c6c1df1935441a72f6cb093d792b0bbe8·...·]/core/primitive.usize.html">usize</a>&gt;(
8 ····&amp;mut·self,8 ····&amp;mut·self,
9 )·-&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">where9 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
11 ····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:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
14 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
18 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>20 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
24 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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:[·...·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·element28 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
33 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
45 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····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,·but47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
51 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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>·over53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
62 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····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;,65 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
66 ····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:·ba5d8dc13415690639b34c34af73e313c8bb191158452ecb8371fc5c136768a7·...·]/core/primitive.bool.html">bool</a><div·class="where">where66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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,68 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
69 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where69 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
70 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
72 ····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·returns72 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
73 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where73 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
76 ····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·the76 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
77 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where77 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
78 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
80 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where80 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
81 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·reducing82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
83 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(83 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
84 ····&amp;mut·self,84 ····&amp;mut·self,
85 ····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,85 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
86 )·-&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">where86 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
89 ····&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·the89 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
90 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where90 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
91 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·returns98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
99 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(99 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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">where102 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····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;,104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
105 ····&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·returns105 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
106 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where106 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····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:·998,·SHA:·c360a4ee431d3893fe8628996760b71481359f5bb66d99199e3c116b26b49117·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where108 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,109 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
110 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····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·the111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
112 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····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·the114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
115 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:·4aaf56d48604411272d713592bc4d0679dd000fc2f281a96b049147b915fc194·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where115 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,116 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
117 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····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·the118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
119 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"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·61552b1c1239cc6cc3e89b0aea7384e7e2ab53bd5c80152b0552dfef70b8e441·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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·minimum·value·with·respect·to·the121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
122 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="S[·...·truncated·by·diffoscope;·len:·386,·SHA:·fe8bee3db36777bfea761e0c2fb3831d1af914b48db484031233fcedd5739256·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where122 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
123 ····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 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
124 ····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 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
125 ····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="primit[·...·truncated·by·diffoscope;·len:·812,·SHA:·a59284f611b878d41e6f7c7cdc90228b7b33e22ff7207d9646678123b9b10d40·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
126 ····T:·'a·+·<a·class="trait"·href="../../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,126 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
127 ····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="primit[·...·truncated·by·diffoscope;·len:·815,·SHA:·d22a65b4a6c05ec14ccdf73eeab35766112dfb3af41a0b15f8eabe9a5e036e50·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
Max diff block lines reached; 83795/282621 bytes (29.65%) of diff not shown.
316 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoIter.html
    
Offset 1, 227 lines modifiedOffset 1, 227 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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#426-435">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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#426-435">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.83.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>
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>2 <p>This·<code>struct</code>·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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>
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>3 (provided·by·the·<a·href="https://doc.rust-lang.org/1.83.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>
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#446-450">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:·8d8fc625560648f62d574b4d2b0db69344f96997707012eda4487a1f2dc8f7aa·...·]/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#446-450">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.83.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:·354e4af1a16c36bd61bb7ee5889637e6b9f4f0966601a875221c5d67adecfd98·...·]/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="../../../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:·6bf36b0f72ceed9299fc59d03b4099204b4b4e39fb9c4df87ac0a9a89d7e6674·...·]/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="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·364,·SHA:·ffe46f6bb842289c2cd82a07b503153426fe2416124ee8982671165b9ffa6c54·...·]/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#1733-1738">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:·3f7fd8a04510ac8fa22b09914ccab5c68387c193be8f74b74b4bb6d575b7e2d2·...·]/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#1733-1738">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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·4508,·SHA:·c2ca343d3b4e8290cbc8b8d21edbca9f704d4a7c2b42b26ddc299604793b92e6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·ce60926e2df060dd2c63e2b718dd9f396941797df8cbe524e7bef564548bfb07·...·]/core/primitive.usize.html">usize</a>&gt;(17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·9022,·SHA:·9a8a3eb059378c215e300898093c73fd7d76a362cbd488c838ba38e72e11b239·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self,18 ····&amp;mut·self,
19 )·-&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">where19 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
21 ····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:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
24 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
34 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
43 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
55 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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>·over63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
77 ····T:·'a,77 ····T:·'a,
78 ····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;,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
79 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
81 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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,83 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
84 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where84 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
88 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where88 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
92 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where92 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
95 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where95 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/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::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·reducing97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
98 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</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>(Self::<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,100 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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</[·...·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">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="https://doc.rust-lang.org/1.83.0/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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</[·...·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·the104 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
105 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
114 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
120 ····&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·returns120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
121 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iter[·...·truncated·by·diffoscope;·len:·997,·SHA:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
124 ····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>,124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
125 ····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·its125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
126 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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; 82643/323910 bytes (25.51%) of diff not shown.
314 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoKeys.html
    
Offset 1, 228 lines modifiedOffset 1, 228 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#534-536">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#534-536">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.83.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>
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#539-543">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:·236aa6d07fb10d3a7a00eef1d45e9be7e26fcef32a596ea3783b9b03e48e6af0·...·]/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#539-543">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.83.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:·cd06bd742fb7215995952de54d5805be5b095f571242deeafa273a25d952be2b·...·]/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="../../../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:·80c5797e82c0e7d6eafe2b6607802100b105b8edba5f262010263c428c50203e·...·]/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="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·366,·SHA:·5579c5a86db5b406fe599c356856efb76f4f551eaaba5c06cc41ab8e4fc66466·...·]/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#2115-2119">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:·6a136ac38475a4ce096243dbd10ebcabe8cf001a5db45d89d331f3b2c82fb48b·...·]/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#2115-2119">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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·4412,·SHA:·f2a329ae2ecbf275b4725c760ec61f209286333d0ec51be2a33ec1704695b68e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·7263,·SHA:·3e98ccff444b31bf50ab965128acdd6da25d1da8298e855831b38a8034ee5c7d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;K&gt;<div·class="where">where17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7959,·SHA:·9805979fcc781fa53fdb7e94a9e94fb826e508160f03805e34d3baf2e9cd866d·...·]/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="../../../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:·6ffbbd5911b89e67c295fdcd82938f849e9bb50ad7bc604f6e327f2d72087a44·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;K&gt;<div·class="where">where18 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·523,·SHA:·8411c52b896c4b0b24242ec4dc11471d75520bd78807ec659b72a12280c7a2d4·...·]/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="../../../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:·7de2ee71557625b28016374742f6625d7e0d5b7dd67ca5b3a4d70550a7a3baac·...·]/core/primitive.usize.html">usize</a>&gt;(19 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·576,·SHA:·a472d7f2a94320d4a442def857eea5a2128b01f4c6d3a3e2fb7337d764a64374·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self,20 ····&amp;mut·self,
21 )·-&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">where21 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
23 ····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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
25 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>31 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
35 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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:[·...·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·element39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
44 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
56 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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,·but58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
62 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····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>·over64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,73 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
78 ····T:·'a,78 ····T:·'a,
79 ····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;,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
80 ····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,80 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
82 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where82 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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,84 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
85 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where85 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
86 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····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,87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns88 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
89 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where89 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
90 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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;·R,91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
92 ····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·the92 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
93 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where93 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
94 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
96 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where96 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·reducing98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../../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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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,101 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../../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">where102 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·the105 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
109 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where112 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·returns114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../../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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,117 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,120 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
121 ····&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·returns121 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where122 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····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:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
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>,125 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</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/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·its126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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; 82643/321656 bytes (25.69%) of diff not shown.
311 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IntoValues.html
    
Offset 1, 226 lines modifiedOffset 1, 226 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#553-559">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#553-559">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.83.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>
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#562-566">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:·6f2635046ab2c391e70ae2098c26f6fad41d23552ec26d9afb85bf449916636d·...·]/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#562-566">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.83.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:·39d00af9658bdc7a22cc7a75dd645efe1133151acbf526b96ed24572417ca9c8·...·]/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="../../../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:·48da611c9b933bdb0ebc0b81b58f14d28256dd19b75aecb273ee156bf7b19b40·...·]/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="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·366,·SHA:·20986c3d12c0545ce6e5cff7634350dbc155bec83894aa0d674103b76bb3cc9f·...·]/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#2166-2170">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:·eea3e699ebb50b42f78214908f0e1a18950b1f72af6514c5bf1cf725a9bf2d9b·...·]/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#2166-2170">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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·4418,·SHA:·11aece42eb9813aad1a875fbb37fa5f6f70f039819a1a2905d028e21bfc3aa99·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·ba7a2e98d7a813262eff8b41543a6c4f66d3fd64db9bfe9e4b7f29fdd47bd017·...·]/core/primitive.usize.html">usize</a>&gt;(17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8032,·SHA:·6c7650d4d9201f5dae8267221c2037907d585621ad72bfb3b6fad60e60bb31bc·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self,18 ····&amp;mut·self,
19 )·-&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">where19 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
21 ····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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
23 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>29 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
33 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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:[·...·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·element37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
42 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
54 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····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,·but56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,59 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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>·over62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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;,69 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,71 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,74 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
76 ····T:·'a,76 ····T:·'a,
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">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,78 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../../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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where80 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
81 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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,82 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../../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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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="https://doc.rust-lang.org/1.83.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·returns
87 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the90 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
91 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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,93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
94 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·reducing96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../../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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(97 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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,99 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../../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">where100 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·the103 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where110 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../../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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,115 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where116 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,118 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
119 ····&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·returns119 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where120 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····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:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
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::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
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/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·its124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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="../../../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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/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="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,126 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
Max diff block lines reached; 82783/318498 bytes (25.99%) of diff not shown.
320 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Iter.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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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#354-357">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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#354-357">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#1555-1559">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:·744e50cbf6068b500790fb37b24f40b0497659bbb9f17e79bf34bcf0fa960577·...·]/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#1555-1559">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.83.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:·fdbcc5daa688a5ea292b7157d271f33bf71f0ef825b363da644a2473cce3957e·...·]/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#1536-1545">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:·1835db06ff08cbf3d1f50906997ef99206528e5334122b449bbebce9c56ca335·...·]/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#1536-1545">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.83.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:·75e3fdd0c76813e4131e5e985092ff6f432c703ab9a352013d2d36709b5ac0d7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·7485,·SHA:·27ba15e4ec99b0265029063e3e2b4e67740abbc1cd876ce52d394a64a21273b5·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8325,·SHA:·bfd14c96148fc76acc7659acd21b33b04a19c1f2d3e44a5e4a5fc19d6ba43a50·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where
17 ····(<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:·eb9545c96536c48f0c115a3379374ccaa41c04a8184494cb1dad929c103f9d6d·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where17 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·977,·SHA:·65ed81404403c0a54efe4d0bcb619c1aa2c133a49494a53fd53bcbd3f0185c28·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where
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:·e490354032b17746a403a3e3ed7e82859d3d9fef7291be6d1a180df5ff1c4e7d·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·785,·SHA:·45a71b2dc4e0d374d4a6c890c7ab75ce94413fe42262e5e7837e0e006867fa43·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
24 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
34 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
43 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
55 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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>·over63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
77 ····T:·'a,77 ····T:·'a,
78 ····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;,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
79 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
81 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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,83 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
84 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where84 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
88 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where88 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
92 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where92 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
95 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where95 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/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::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·reducing97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
98 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</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>(Self::<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,100 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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</[·...·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">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="https://doc.rust-lang.org/1.83.0/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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</[·...·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·the104 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
105 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
114 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
120 ····&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·returns120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
121 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iter[·...·truncated·by·diffoscope;·len:·997,·SHA:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
124 ····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>,124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
125 ····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·its125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
126 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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; 88069/327268 bytes (26.91%) of diff not shown.
305 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.IterMut.html
    
Offset 1, 219 lines modifiedOffset 1, 219 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#387-393">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#387-393">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#397-402">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#398-401">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#405-416">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:·5afbf7cc933663c830dccc2428bcd016ca22e23cfa8c19117b261c9f61d011f9·...·]/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#397-402">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#398-401">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#405-416">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.83.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:·a4540957567a885ab5f7ba3edffdbc269ba02d9772d1cc130d0f5b65af6fe0f3·...·]/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#1608-1617">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:·959eb61eeb2402ed8d586dd00ed9025ddf5ee8fe450a4f0ee001916493d591d5·...·]/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#1608-1617">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.83.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:·78554562af3e25237b9a0eb314e9fdd5818ccc81673a1f1061f21501a8c2af13·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·7519,·SHA:·7460b1d47532742e37e9f5937719a2ea66075115c0dd4c96c638a89f5de701ab·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8359,·SHA:·91c69d7f20e4e3cbb379448a00c3ef481173055b8057ccfe2d9e347b87275621·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where
17 ····(<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:·0cee6859e863bcd09a8b995f5694b835eb3ef721f6c30e259b4477dfb746e9c6·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where17 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/t[·...·truncated·by·diffoscope;·len:·981,·SHA:·e4cfb49c6b713e91f7c80bdba75f72b529ad1a35a2ade1902604796b2ee970a5·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where
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:·c4531e323025585877b31419f7f57bff97c47fc12c59d1cc9de4b88e6eae3dc9·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/t[·...·truncated·by·diffoscope;·len:·789,·SHA:·829d09d9c92de9b014ac5761a82fa1300c4d5b586c471f58e6c3f427546553b1·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
24 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
34 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
43 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
55 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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>·over63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
77 ····T:·'a,77 ····T:·'a,
78 ····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;,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
79 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
81 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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,83 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
84 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where84 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
88 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where88 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
92 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where92 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
95 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where95 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/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::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·reducing97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
98 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</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>(Self::<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,100 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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</[·...·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">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="https://doc.rust-lang.org/1.83.0/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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</[·...·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·the104 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
105 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
114 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
120 ····&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·returns120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
121 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iter[·...·truncated·by·diffoscope;·len:·997,·SHA:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
124 ····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>,124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
125 ····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·its125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
126 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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; 79603/312547 bytes (25.47%) of diff not shown.
318 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Keys.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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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#477-479">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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#477-479">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#1799-1803">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:·7500a026f351936958ab8f1e2b636994a29bca94c42a2c0e58229f97b2cc1968·...·]/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#1799-1803">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.83.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:·bb09645ffc7df423a029a782783ffd927f01f6c0f8f38d7a893e633f933c7f3b·...·]/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#1782-1786">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:·4de072c86405b7d483fccf9105e997e89f302fb725b7c8fb6997b329443d2e9c·...·]/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#1782-1786">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.83.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:·f3779d3cc4db3f81693c7280d0c294a54fe40cf6558cece7ad1b76c8cdcc24ea·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·7142,·SHA:·a2eb7ab731a830f8f75a7d7e50ce93433805ab88044e950ca1045c80ba32ead0·...·]/core/primitive.reference.html">&amp;'a·K</a>&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7886,·SHA:·d3824985fcc107e7dc09ef3cbe09ea4ae751e3be11c4b94ea2a332f49fcc1cc2·...·]/core/primitive.reference.html">&amp;'a·K</a>&gt;<div·class="where">where
17 ····<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:·f6b0a392e5f4f3531a7a70a64e2d82fad2dba8963d7efe8f87285640fe6111c9·...·]/core/primitive.reference.html">&amp;'a·K</a>&gt;<div·class="where">where17 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·8c41306d81e7c7b4f99ec6b3cf1c712ed7547352f2081ec68f155212c753de46·...·]/core/primitive.reference.html">&amp;'a·K</a>&gt;<div·class="where">where
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:·f7bbaaf123bbbaa81715357c9031db924b8544642e3dbccb585edd4878cf999a·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·c03acc7fca64ac0b3c6aacce869b03ed660fd69902bcf9a3ea493b74355dfb27·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
24 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
34 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
43 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
55 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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>·over63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
77 ····T:·'a,77 ····T:·'a,
78 ····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;,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
79 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
81 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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,83 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
84 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where84 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
88 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where88 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
92 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where92 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
95 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where95 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/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::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·reducing97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
98 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</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>(Self::<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,100 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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</[·...·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">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="https://doc.rust-lang.org/1.83.0/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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</[·...·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·the104 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
105 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
114 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
120 ····&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·returns120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
121 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iter[·...·truncated·by·diffoscope;·len:·997,·SHA:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
124 ····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>,124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
125 ····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·its125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
126 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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; 88069/325482 bytes (27.06%) of diff not shown.
63.7 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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>.1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.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>.
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="../../../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:·4d096aca80e878385d4cc165881c375fe461df7133c51bc672471426b200d519·...·]/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="https://doc.rust-lang.org/1.83.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:·a8e5f63bc828266548f9e9991ea901071f6c47f721ba97faeec26bd94b7f4184·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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:·89984b5182d1d315fde63ff8f1dd0eb706fbe1fcd4208264350d0bb983fa5ee3·...·]/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="https://doc.rust-lang.org/1.83.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:·55b784314dd22c7946c213711c8f685a9abe96789ef7acd98ee8c4ccad226ca6·...·]/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="../../../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">where95 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·91cfce1b8ef45d4bf268d81a007d02f29e5d9a9601cf03f3dc844221d22bccc8·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,96 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,97 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
98 ····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">where98 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·2763b37a468043d680b356630068898cdbd5aa62944a19c56c18fe0dc9aa39af·...·]/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="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,99 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,100 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
101 ····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">where101 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·c4c49418340bb34851d8f9103636c6a4fa77c95f3b24322008abab8b652ee488·...·]/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="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,102 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,103 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
104 ····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">where104 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·3de8c2a66df86c98fc8207dc76331931615c471d29722e7fc281a397ee58ef35·...·]/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="../../../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:·5c646b22d04309cc33e612ca40cd9026ad9e2743ea35e0129a3fb09306dd854d·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where105 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·024fd593eabd5953ca501e97aba129be22375c3d613898a753a89336d6f042f6·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·747c7386c78d143df32a87bc5392f871c446e3ebe1cc7a6c5b26d40164aaf5ef·...·]/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="https://doc.rust-lang.org/1.83.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:·8ce9177d818d5d0bda38ff64fd6045887c1cc85720e02f055745b88c86a2f6f5·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../../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:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.2 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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;·{1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.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;·{
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="../../../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:·76f1dcc742753f5cfb467e66f51a65d67dca83c91ec80bcd55137e11f35376be·...·]/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="https://doc.rust-lang.org/1.83.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:·e63bab9a649cf3e6c1ca8bebb616e987f9b06896820873ee10d7650d6dfee5fa·...·]/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="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,9 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,
10 ····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">where10 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·758f41cd65362d5545eacd66f744b8847bf614e100f037432d2eb2c4c06c75d0·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,11 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,12 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
13 ····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">where13 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·1eaf3024cf169987f4b2cd00e9f671ea5d8df5020b7209ed5aa49177efbe22e8·...·]/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="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,14 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,15 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
16 ····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">where16 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·c4c49418340bb34851d8f9103636c6a4fa77c95f3b24322008abab8b652ee488·...·]/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="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,17 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,18 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
19 ····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">where19 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·3de8c2a66df86c98fc8207dc76331931615c471d29722e7fc281a397ee58ef35·...·]/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="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,20 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,
21 ····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:·f8f10083d3e24c9c764e8a486661fa053e72e0f5a3d2a05eced25e633d3796c7·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where21 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·ed908460d84d6ebecfaecbabb933dcb148d14cb51928eefdf149c692ab13a509·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·747c7386c78d143df32a87bc5392f871c446e3ebe1cc7a6c5b26d40164aaf5ef·...·]/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="https://doc.rust-lang.org/1.83.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:·8ce9177d818d5d0bda38ff64fd6045887c1cc85720e02f055745b88c86a2f6f5·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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#2672-2686">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#2672-2686">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="../../../core/marker/trait.Sized.html"·title="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:·159b4752d7269f8a67d91eeb3d323daa68180c8d895e0786157efcabbe8bfa96·...·]/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="https://doc.rust-lang.org/1.83.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:·88a7a0c9b7c6386b2fb76f817d083eedcf15d69d318f12ab100c3dafb5b6cc71·...·]/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="../../../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:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../../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:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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>
311 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Range.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="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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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#576-578">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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#576-578">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#2210-2214">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:·c6ddd1185b9057472711d0400f79f410da321674047aec603b51deed45674093·...·]/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#2210-2214">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.83.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:·0587bc3150bd6b72d58ed3c6fc466f486a5ffdee2723dca3efff387cb61a2c91·...·]/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#2200-2204">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:·d8cfbcee2e6ea8d870ce36dae43e4b3b6dddaf68b8fe70fb1e0cab0c61c89375·...·]/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#2200-2204">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.83.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:·8d0d77bc149c85de54ea27e82a97a8db314ead16b8a7a64e63adf81edb761702·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·4152,·SHA:·af42da0bdf507e9706efed9f0364e854a7c083bf6e0683f2ae274b3c7d3b518c·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4680,·SHA:·f1f883728f6136f4276ad3c38d95dc0db15e6ff59716e651a26469a3d265457e·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where
17 ····(<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:·608e45c815caa4d79a16f33795a2474ec790db792210b519f87d8798549d9b67·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where17 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·977,·SHA:·8acc0e705ae470edb334055326fb4d77585d32787852167a8e1639e68cd467d9·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where
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:·e490354032b17746a403a3e3ed7e82859d3d9fef7291be6d1a180df5ff1c4e7d·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·785,·SHA:·45a71b2dc4e0d374d4a6c890c7ab75ce94413fe42262e5e7837e0e006867fa43·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·5edbb3563fa6796877f4bd3d4f30dc77d0bc5c679f8e3ce8c16d5a94bf4a5ccc·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
24 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
34 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
43 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
55 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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>·over63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
77 ····T:·'a,77 ····T:·'a,
78 ····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;,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
79 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
81 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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,83 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
84 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where84 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
88 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where88 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
92 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where92 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
95 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where95 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/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::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·reducing97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
98 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</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>(Self::<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,100 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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</[·...·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">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="https://doc.rust-lang.org/1.83.0/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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</[·...·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·the104 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
105 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
114 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
120 ····&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·returns120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
121 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iter[·...·truncated·by·diffoscope;·len:·998,·SHA:·c360a4ee431d3893fe8628996760b71481359f5bb66d99199e3c116b26b49117·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,124 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
125 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····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·the126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
Max diff block lines reached; 88139/318442 bytes (27.68%) of diff not shown.
297 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.RangeMut.html
    
Offset 1, 216 lines modifiedOffset 1, 216 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#595-600">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#595-600">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#603-608">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#604-607">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#2022-2033">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:·d90dfa619188a17ef52d699bcd95733aec8d49b515ee81406c498d7c1ab6f6b7·...·]/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#603-608">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#604-607">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#2022-2033">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.83.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:·cbaffefdc45a096a3c8d52f6cce412045b1c39cf03196f8c55dc916f8edbc4e3·...·]/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#2244-2248">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:·ea7b28feb8e3d78ced9b831fd5b364bb1a718ad77d7df1f5a24b6212eccf04da·...·]/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#2244-2248">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.83.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:·90e3481248f9b5daa93bb146d887af56e15af0e011c2ce0d450b91fec4fe3def·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·4179,·SHA:·a6be8fc76964df199b71904c9bc002080ab641d44d72340e8e8cf30364cc43f5·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4707,·SHA:·9d6d3825a676a7f6fcf02ab5fa8c20840a5609b5221181db42b5f37492896fee·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where
17 ····(<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:·f71fa90515b2161ff1b20bded8b704ccfcab0cd3107ff38fedafcfc73e6ea165·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where17 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/t[·...·truncated·by·diffoscope;·len:·981,·SHA:·4bfbf5a83ae65acc1605bb5f9f53a0dcd34be47b2e3b8a30c3e3d408bf12fa16·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where
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:·c4531e323025585877b31419f7f57bff97c47fc12c59d1cc9de4b88e6eae3dc9·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/t[·...·truncated·by·diffoscope;·len:·789,·SHA:·829d09d9c92de9b014ac5761a82fa1300c4d5b586c471f58e6c3f427546553b1·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·5edbb3563fa6796877f4bd3d4f30dc77d0bc5c679f8e3ce8c16d5a94bf4a5ccc·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
24 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
34 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
43 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
55 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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>·over63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
77 ····T:·'a,77 ····T:·'a,
78 ····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;,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
79 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
81 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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,83 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
84 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where84 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
88 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where88 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
92 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where92 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
95 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where95 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/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::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·reducing97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
98 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</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>(Self::<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,100 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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</[·...·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">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="https://doc.rust-lang.org/1.83.0/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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</[·...·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·the104 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
105 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
114 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
120 ····&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·returns120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
121 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iter[·...·truncated·by·diffoscope;·len:·998,·SHA:·c360a4ee431d3893fe8628996760b71481359f5bb66d99199e3c116b26b49117·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,124 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
125 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····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·the126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
Max diff block lines reached; 79673/303710 bytes (26.23%) 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#3428">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#3428">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#3426">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:·0852a251e345e79f844df317acfaa764dcb0dfdf3323707a8edaca6db6c71b8d·...·]/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#3426">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.83.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:·001820929a8f8046874381c3b2844f340589dca0656df5519fd896c244af912c·...·]/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#3426">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:·834f93dc64409118169438bec4922fe84ccbc33fd1ebfcf5433770d345e1feb2·...·]/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#3426">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.83.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:·89440d6b3d4b575c7df4bbc7da055afcf357d6f3fee16ee869701210f0e92498·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/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·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../../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:·48923b2de6bcb5689f23d03d435445eb4051a378bddec4b7f5955358ab377c4e·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·6dddcd23cf7bd50ffe1d6d24130ae68bd99683dd24f390b367def62c0b5604d8·...·]/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#2672-2686">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="../../../core/marker/trait.Sized.html"·title="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:·159b4752d7269f8a67d91eeb3d323daa68180c8d895e0786157efcabbe8bfa96·...·]/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="https://doc.rust-lang.org/1.83.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:·88a7a0c9b7c6386b2fb76f817d083eedcf15d69d318f12ab100c3dafb5b6cc71·...·]/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.9 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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>.1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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.83.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>.
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="../../../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:·ed3858377d788254683e46c0602c8a30d2f16652fc87d935f04c86a0729a80d3·...·]/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="https://doc.rust-lang.org/1.83.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:·9140091bc39290ac57464595f5e6f393ba3ea33cf107c3ca814879fcdee8899c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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,
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="../../../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:·b70a80ffa8777dfb2c6e47d05fcb3b44a51628c702fd9ded29ef07ad96128d46·...·]/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="https://doc.rust-lang.org/1.83.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:·6e8b1d96a7cef2c3f3caab19bf4d9c30ed3b0097b3512265145915d8372ed49a·...·]/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="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,29 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,
30 ····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">where30 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·fa05a60bd17d80d4b47057a0e00262e827e215c47992119143be4fcd591ea81e·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,31 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,32 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
33 ····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">where33 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·1a15e470c2883e4a07501e79f6b752f92f71f4091c53e6e259816fcb354c2baf·...·]/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="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,34 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,35 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
36 ····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">where36 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·88eeeba4fb012357f250f46c63beadc15fd2ebfa94257e6d09f23894a770042a·...·]/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="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,37 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,38 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
39 ····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">where39 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·2ec2d301aa8221713aebc2cab37ab00637cb30fe8ff758501a54e42d85f00850·...·]/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="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,40 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,
41 ····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:·0a9c058ab9c25b1f4d806c97e71ca19c9656d977500561fd5a8fec184f120df1·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where41 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·652abb2337b8ca666767b272ce12706c045d99015b3cc81ce068459a30958808·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·747c7386c78d143df32a87bc5392f871c446e3ebe1cc7a6c5b26d40164aaf5ef·...·]/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="https://doc.rust-lang.org/1.83.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:·8ce9177d818d5d0bda38ff64fd6045887c1cc85720e02f055745b88c86a2f6f5·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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 </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.83.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.83.0/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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>
314 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.Values.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="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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#496-498">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#496-498">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#1854-1858">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:·babd9d89e9be4e55c42eb10c0b3b175f7ffbcc0ffea704179819a2316ef8a2ac·...·]/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#1854-1858">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.83.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:·e96058b4c0d1cf7372ef6f6eda50e4598008d692d8687a88779c73cc6f6caec7·...·]/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#1837-1841">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:·d566cd7a478d64a7f7ec4d426846957cb8e6057b8a6089f957885273cd7f805c·...·]/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#1837-1841">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.83.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:·b8b49df5fa7e890fb6244bb8891d67082bf4d465cf671733d85faf9a4fd73aac·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·215dd54b7995b5ec9662826b55f1aa0b752a8f2c89bb3b003c3296fc1bcc92cc·...·]/core/primitive.usize.html">usize</a>&gt;(16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7821,·SHA:·d6a6f118e465d078bbd329f87aeb940fc4a08fc81fb4daefe9f4adc9fd41fe94·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&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">where18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</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><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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
22 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>28 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
32 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element36 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
41 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
53 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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,·but55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,58 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
59 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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">where59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····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>·over61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
62 <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>,62 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
63 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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where63 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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">where66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
68 ····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;,68 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
69 ····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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
70 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
74 ····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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
75 ····T:·'a,75 ····T:·'a,
76 ····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;,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
77 ····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,77 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.78 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
79 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where79 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where82 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
86 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where86 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
87 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
89 ····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·the89 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
90 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where90 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
91 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where93 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
96 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(96 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 )·-&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">where99 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
102 ····&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·the102 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
103 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where109 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
110 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
112 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(112 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
113 ····&amp;mut·self,113 ····&amp;mut·self,
114 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where115 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
118 ····&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·returns118 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
119 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where119 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····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>,122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
123 ····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·its123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
124 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,125 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
126 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 88209/321582 bytes (27.43%) of diff not shown.
300 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_map/struct.ValuesMut.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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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#515-517">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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#515-517">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#520-524">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#521-523">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#2070-2081">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:·cd722d113dbb44fccae9ecaeef9cbd957e83c653ae5180ca637beb1de7a4dede·...·]/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#520-524">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#521-523">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#2070-2081">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.83.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:·d65528d2e05e0962799d22c2b0028c86e0b7b91d4b01c33d8ed8c724c68b591e·...·]/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#2053-2057">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:·b4f89991cae19665e9cb0204d976fbe0a2afb16b108b0fd97744b7c5b353df73·...·]/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#2053-2057">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.83.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:·93e04b1d1e2fa7cb3906a1f0113358d3c93f76ba936b255ba92445289e03befe·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·fff9d05fecf4f04604bad4d5dfa625e76ec837abf3b53138b97a0e29bf192c2a·...·]/core/primitive.usize.html">usize</a>&gt;(16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7867,·SHA:·97cf4ae7ecd45fa3b639da1662c4a36cf4d3f88c640e352f1f27db33ac41985c·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&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">where18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</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><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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
22 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>28 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
32 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element36 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
41 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
53 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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,·but55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,58 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
59 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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">where59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····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>·over61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
62 <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>,62 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
63 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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where63 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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">where66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
68 ····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;,68 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
69 ····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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
70 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
74 ····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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
75 ····T:·'a,75 ····T:·'a,
76 ····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;,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
77 ····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,77 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.78 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
79 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where79 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where82 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
86 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where86 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
87 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
89 ····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·the89 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
90 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where90 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
91 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where93 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
96 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(96 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 )·-&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">where99 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
102 ····&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·the102 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
103 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where109 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
110 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
112 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(112 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
113 ····&amp;mut·self,113 ····&amp;mut·self,
114 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where115 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
118 ····&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·returns118 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
119 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where119 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····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>,122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
123 ····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·its123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
124 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,125 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
126 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 79743/306860 bytes (25.99%) 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#74-79">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#74-79">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.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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.6 normally·only·possible·through·<a·href="https://doc.rust-lang.org/1.83.0/core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>,·<a·href="https://doc.rust-lang.org/1.83.0/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#324-343">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#340-342">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#324-343">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#340-342">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#345-1358">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#360-362">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#345-1358">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.83.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#360-362">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#392-399">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#392-399">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="../../../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>,54 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</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.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
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.56 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.
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#422-460">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#422-460">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="../../../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="https://doc.rust-lang.org/1.83.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,
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#483-491">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#483-491">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="../../../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="https://doc.rust-lang.org/1.83.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,
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#514-544">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#514-544">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="../../../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="https://doc.rust-lang.org/1.83.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,
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#565-570">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#565-570">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="../../../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="https://doc.rust-lang.org/1.83.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,
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#585-590">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#585-590">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="../../../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="https://doc.rust-lang.org/1.83.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>
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#608-614">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">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#608-614">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.83.0/core/primitive.reference.html">&amp;Q</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,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.83.0/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>160 ····Q:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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;
  
166 <span·class="kw">let·</span>set·=·BTreeSet::from([<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>]);166 <span·class="kw">let·</span>set·=·BTreeSet::from([<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>]);
Max diff block lines reached; 245858/292955 bytes (83.92%) of diff not shown.
58.6 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#2002-2004">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#2002-2004">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#2075-2111">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#2082-2084">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·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#2075-2111">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#2082-2084">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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#2092-2094">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·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#2092-2094">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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#2100-2102">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>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#2100-2102">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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#2108-2110">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>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#2108-2110">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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#2000">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:·d4695bf7be73f1d2cfc15993caa2f2dfb4483029770c9ab098d2bc700386461a·...·]/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#2000">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.83.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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="[·...·truncated·by·diffoscope;·len:·3950,·SHA:·6d87d4b93b811c94c2750a65529171ad9d05b95bb0e53e6ad6f51422fd6c50fb·...·]/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="../../../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">where19 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·97dd306967a17359da331145fc024dd8c730245a6d094838f78db612bea3baab·...·]/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="../../../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">where20 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·1a2c0602705754c8b3dd2ba65e84ecc3ad14eb4fb004c06c31a7e65de07d0da8·...·]/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="../../../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">where21 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·0a0a518592e37c700fbbb73d7094c98cb853d34e3836edfa35f09f69aca559e6·...·]/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="../../../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:·7e15b9b0d422bd465a639539b8b90816ab7adb3072cd21490eac9f166da2fc2b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where22 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a03a1474362a82e4fba0d79578e0660d420492b00c3248fa6dca2e795990bbd5·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where25 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</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·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·a7d1f388ba07396e87261271b8aa586ab0c147478908836ee7ff521ef25e555e·...·]/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="https://doc.rust-lang.org/1.83.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:·e3c2dfd0abdfa96e39e7563c61a47234eecf86fd351479c84cf8586392bfaf0c·...·]/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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#2113-2175">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#2120-2122">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·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#2113-2175">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#2120-2122">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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#2130-2132">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·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#2130-2132">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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#2138-2140">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>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#2138-2140">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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#2146-2148">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>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#2146-2148">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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#2157-2159">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#2157-2159">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#2172-2174">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#2172-2174">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#2226-2310">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#2241-2243">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#2226-2310">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.83.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:·0460a5830e30d80b3ae48dbc71a9c91e7b4f0428e31a23c56840666a21829299·...·]/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#2241-2243">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#2274-2276">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·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#2274-2276">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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.0/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#2289-2291">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·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#2289-2291">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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.0/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#2298-2300">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 </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#2298-2300">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.83.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>
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#2307-2309">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 </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#2307-2309">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.83.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>
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#2032-2036">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#2033-2035">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">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#2032-2036">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#2033-2035">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.83.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:·2bee389d2ef9c09fd201e31fb504ff2155038ae57466e2e4174541c40654527c·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,81 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
82 ····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">where82 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·934d9bc9ff9998341322a2dc97b5d68156f5073196f8b7b89e5c2401d2606533·...·]/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="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,83 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
84 ····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">where84 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e05344e034d2582f937eb959b8546dd25eda6b5ea20603628d554881555e2c5c·...·]/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="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,85 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
86 ····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:·683f0d709453194080f0fddbb2102e23cfc9980dbca71694da21f42f69c09851·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where86 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·4791d0bc044b81af579431ab397c9fd4338c221e8acd25514965d6394da2b02b·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·747c7386c78d143df32a87bc5392f871c446e3ebe1cc7a6c5b26d40164aaf5ef·...·]/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="https://doc.rust-lang.org/1.83.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:·8ce9177d818d5d0bda38ff64fd6045887c1cc85720e02f055745b88c86a2f6f5·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../../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:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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#2177-2224">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#2184-2186">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·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#2177-2224">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#2184-2186">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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#2194-2196">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·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#2194-2196">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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#2202-2204">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>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#2202-2204">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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#2210-2212">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>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#2210-2212">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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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#2221-2223">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#2221-2223">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#2312-2396">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#2327-2329">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#2312-2396">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.83.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:·0460a5830e30d80b3ae48dbc71a9c91e7b4f0428e31a23c56840666a21829299·...·]/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#2327-2329">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#2360-2362">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·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#2360-2362">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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.0/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#2375-2377">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·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#2375-2377">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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.0/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#2384-2386">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>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#2384-2386">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.83.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 <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#2393-2395">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>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#2393-2395">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.83.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 <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#2069-2073">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#2070-2072">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">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#2069-2073">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#2070-2072">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.83.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:·5c9bd387ca7eabcd6e63e24fe9653c6cf81b78098043af51ae0bbd431b150ceb·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,80 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
81 ····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">where81 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·6a1380990b927810a4a3ca533598fe3a542ff748882adc8ad8c2b0f85d6a0c94·...·]/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="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,82 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
83 ····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">where83 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·557c51e05cb318a57e95abf23aa36a14b4127e83e7ba1a1c65924dfb5561b6b6·...·]/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="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,84 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
85 ····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:·4efe8d85d9dd07e713b55ede2ebcd813de2b2966db3031b3e0b7651022087f07·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where85 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·d0a8ec3db7db7efbd0afa343640ba92ae966cb282dc78368d9e8b0101451c629·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·747c7386c78d143df32a87bc5392f871c446e3ebe1cc7a6c5b26d40164aaf5ef·...·]/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="https://doc.rust-lang.org/1.83.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:·8ce9177d818d5d0bda38ff64fd6045887c1cc85720e02f055745b88c86a2f6f5·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../../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:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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>
289 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Difference.html
    
Offset 1, 201 lines modifiedOffset 1, 201 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#179-185">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#179-185">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.83.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>
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#1802-1817">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:·4c90e6c368e13621e48488945a5e0d3f79362726ec1da9adb34785c654ead555·...·]/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#1802-1817">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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struc[·...·truncated·by·diffoscope;·len:·8415,·SHA:·aa4e4c881167a067d654952a84c43664e5fb1e4e0431d45302940ae8e8ecdbc3·...·]/core/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::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">where6 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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[·...·truncated·by·diffoscope;·len:·842,·SHA:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
11 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where15 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····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>17 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where18 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
21 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where21 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element25 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
26 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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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">where26 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="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·as29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
30 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where30 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</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·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>·methods31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
32 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See32 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
33 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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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">where33 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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">where35 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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:[·...·truncated·by·diffoscope;·len:·890,·SHA:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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">where37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
40 ····Self:·<a·class="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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<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></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
42 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where42 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····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,·but44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
45 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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where45 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,47 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
48 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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">where48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····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>·over50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
51 <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>,51 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
52 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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where52 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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">where55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
56 ····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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
57 ····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;,57 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
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'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
59 ····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;,59 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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><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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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;,62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
63 ····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:·ba5d8dc13415690639b34c34af73e313c8bb191158452ecb8371fc5c136768a7·...·]/core/primitive.bool.html">bool</a><div·class="where">where63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····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,65 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
66 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where66 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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,68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
69 ····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·returns69 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
70 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where70 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
73 ····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·the73 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
74 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where74 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····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,76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
77 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where77 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
78 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
80 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(80 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
81 ····&amp;mut·self,81 ····&amp;mut·self,
82 ····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,82 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
83 )·-&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">where83 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····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;,85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····&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·the86 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
87 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where87 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/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="https://doc.rust-lang.org/1.83.0/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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
96 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(96 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····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,98 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 )·-&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">where99 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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;,101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
102 ····&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·returns102 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
103 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where103 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····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:·998,·SHA:·c360a4ee431d3893fe8628996760b71481359f5bb66d99199e3c116b26b49117·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,106 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····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·the108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
109 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····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·the111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
112 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:·4aaf56d48604411272d713592bc4d0679dd000fc2f281a96b049147b915fc194·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,113 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····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·the115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
116 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"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·61552b1c1239cc6cc3e89b0aea7384e7e2ab53bd5c80152b0552dfef70b8e441·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····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·minimum·value·with·respect·to·the118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
119 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="S[·...·truncated·by·diffoscope;·len:·386,·SHA:·fe8bee3db36777bfea761e0c2fb3831d1af914b48db484031233fcedd5739256·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where119 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
120 ····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;,120 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
121 ····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;,121 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
122 ····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="primit[·...·truncated·by·diffoscope;·len:·812,·SHA:·a59284f611b878d41e6f7c7cdc90228b7b33e22ff7207d9646678123b9b10d40·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
123 ····T:·'a·+·<a·class="trait"·href="../../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,123 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
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="primit[·...·truncated·by·diffoscope;·len:·815,·SHA:·d22a65b4a6c05ec14ccdf73eeab35766112dfb3af41a0b15f8eabe9a5e036e50·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
125 ····T:·'a·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,125 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</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="primit[·...·truncated·by·diffoscope;·len:·918,·SHA:·2c4dc183ed119c4b8fbdddf0ec6b79f8032885e23a67d0277d7a32c4d337f548·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1110,·SHA:·8e928a34adcfe6314437c983df41039798fd9de66cfc14fac543f6c07926f3c2·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where
127 ····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·ite[·...·truncated·by·diffoscope;·len:·659,·SHA:·0442aa37363d29446244d586fd449258f332dc96d7be40547c9e6796c02efd80·...·]/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">where127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></sectio[·...·truncated·by·diffoscope;·len:·827,·SHA:·d3f339881e9074f32a4aa427d5a1514453148df4cb20556a2037ee8ccc54900d·...·]/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
Max diff block lines reached; 89159/295985 bytes (30.12%) of diff not shown.
276 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.ExtractIf.html
    
Offset 1, 207 lines modifiedOffset 1, 207 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#1442-1455">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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#1442-1455">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.83.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">where
2 ····T:·'a,2 ····T:·'a,
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>3 ····F:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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#1458-1466">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">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#1458-1466">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.83.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">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="../../../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:·49d30c101b8fb9865f7a2ea0bd74cf8a6e22e42b501d3806ce28490dca341808·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1542,·SHA:·ba63d913fb7a72b9b72b1533c114d69d842edcda4309c3f5b5e58ecd06521a9a·...·]/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="../../../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:·e94c6753a45d92eada0d735199814f3712d6c50eb69b2adbee28f5a236929132·...·]/core/primitive.usize.html">usize</a>&gt;(7 ····F:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·2962,·SHA:·db25c5e895d0b37148e4d7dd9486a555d8c3557c82204593723c9fbb274b23d6·...·]/core/primitive.usize.html">usize</a>&gt;(
8 ····&amp;mut·self,8 ····&amp;mut·self,
9 )·-&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">where9 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
11 ····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:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
14 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
18 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>20 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
24 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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:[·...·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·element28 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
33 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
45 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····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,·but47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
51 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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>·over53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
62 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····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;,65 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
66 ····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:·ba5d8dc13415690639b34c34af73e313c8bb191158452ecb8371fc5c136768a7·...·]/core/primitive.bool.html">bool</a><div·class="where">where66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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,68 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
69 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where69 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
70 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
72 ····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·returns72 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
73 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where73 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
76 ····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·the76 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
77 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where77 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
78 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
80 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where80 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
81 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·reducing82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
83 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(83 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
84 ····&amp;mut·self,84 ····&amp;mut·self,
85 ····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,85 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
86 )·-&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">where86 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
89 ····&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·the89 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
90 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where90 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
91 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·returns98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
99 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(99 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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">where102 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····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;,104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
105 ····&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·returns105 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
106 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where106 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····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:·998,·SHA:·c360a4ee431d3893fe8628996760b71481359f5bb66d99199e3c116b26b49117·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where108 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,109 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
110 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····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·the111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
112 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····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·the114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
115 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:·4aaf56d48604411272d713592bc4d0679dd000fc2f281a96b049147b915fc194·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where115 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,116 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
117 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····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·the118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
119 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"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·61552b1c1239cc6cc3e89b0aea7384e7e2ab53bd5c80152b0552dfef70b8e441·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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·minimum·value·with·respect·to·the121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
122 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="S[·...·truncated·by·diffoscope;·len:·386,·SHA:·fe8bee3db36777bfea761e0c2fb3831d1af914b48db484031233fcedd5739256·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where122 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
123 ····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 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
124 ····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 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
125 ····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="primit[·...·truncated·by·diffoscope;·len:·812,·SHA:·a59284f611b878d41e6f7c7cdc90228b7b33e22ff7207d9646678123b9b10d40·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
126 ····T:·'a·+·<a·class="trait"·href="../../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,126 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
127 ····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="primit[·...·truncated·by·diffoscope;·len:·815,·SHA:·d22a65b4a6c05ec14ccdf73eeab35766112dfb3af41a0b15f8eabe9a5e036e50·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
Max diff block lines reached; 83073/282094 bytes (29.45%) of diff not shown.
289 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Intersection.html
    
Offset 1, 201 lines modifiedOffset 1, 201 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#253-259">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#253-259">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.83.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>
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#1904-1918">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:·e1ecdb481169a51197e1e5bcd6b0c0c4c22b42a25229c01a412d150609191877·...·]/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#1904-1918">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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struc[·...·truncated·by·diffoscope;·len:·8441,·SHA:·84e641eb35dca4ded322a649cf79167ea894d7e896cf013b1288d4d28a578796·...·]/core/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::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">where6 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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[·...·truncated·by·diffoscope;·len:·842,·SHA:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
11 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where15 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····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>17 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where18 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
21 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where21 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element25 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
26 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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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">where26 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="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·as29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
30 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where30 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</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·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>·methods31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
32 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See32 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
33 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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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">where33 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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">where35 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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:[·...·truncated·by·diffoscope;·len:·890,·SHA:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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">where37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
40 ····Self:·<a·class="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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<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></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
42 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where42 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····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,·but44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
45 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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where45 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,47 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
48 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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">where48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····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>·over50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
51 <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>,51 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
52 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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where52 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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">where55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
56 ····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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
57 ····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;,57 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
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'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
59 ····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;,59 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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><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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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;,62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
63 ····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:·ba5d8dc13415690639b34c34af73e313c8bb191158452ecb8371fc5c136768a7·...·]/core/primitive.bool.html">bool</a><div·class="where">where63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····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,65 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
66 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where66 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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,68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
69 ····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·returns69 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
70 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where70 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
73 ····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·the73 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
74 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where74 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····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,76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
77 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where77 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
78 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
80 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(80 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
81 ····&amp;mut·self,81 ····&amp;mut·self,
82 ····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,82 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
83 )·-&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">where83 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····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;,85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····&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·the86 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
87 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where87 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/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="https://doc.rust-lang.org/1.83.0/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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
96 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(96 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····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,98 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 )·-&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">where99 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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;,101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
102 ····&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·returns102 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
103 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where103 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····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:·998,·SHA:·c360a4ee431d3893fe8628996760b71481359f5bb66d99199e3c116b26b49117·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,106 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····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·the108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
109 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····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·the111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
112 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:·4aaf56d48604411272d713592bc4d0679dd000fc2f281a96b049147b915fc194·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,113 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····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·the115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
116 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"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·61552b1c1239cc6cc3e89b0aea7384e7e2ab53bd5c80152b0552dfef70b8e441·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····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·minimum·value·with·respect·to·the118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
119 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="S[·...·truncated·by·diffoscope;·len:·386,·SHA:·fe8bee3db36777bfea761e0c2fb3831d1af914b48db484031233fcedd5739256·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where119 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
120 ····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;,120 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
121 ····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;,121 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
122 ····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="primit[·...·truncated·by·diffoscope;·len:·812,·SHA:·a59284f611b878d41e6f7c7cdc90228b7b33e22ff7207d9646678123b9b10d40·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
123 ····T:·'a·+·<a·class="trait"·href="../../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,123 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
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="primit[·...·truncated·by·diffoscope;·len:·815,·SHA:·d22a65b4a6c05ec14ccdf73eeab35766112dfb3af41a0b15f8eabe9a5e036e50·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
125 ····T:·'a·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,125 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</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="primit[·...·truncated·by·diffoscope;·len:·918,·SHA:·2c4dc183ed119c4b8fbdddf0ec6b79f8032885e23a67d0277d7a32c4d337f548·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1110,·SHA:·8e928a34adcfe6314437c983df41039798fd9de66cfc14fac543f6c07926f3c2·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where
127 ····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·ite[·...·truncated·by·diffoscope;·len:·659,·SHA:·0442aa37363d29446244d586fd449258f332dc96d7be40547c9e6796c02efd80·...·]/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">where127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></sectio[·...·truncated·by·diffoscope;·len:·827,·SHA:·d3f339881e9074f32a4aa427d5a1514453148df4cb20556a2037ee8ccc54900d·...·]/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
Max diff block lines reached; 89299/296255 bytes (30.14%) of diff not shown.
311 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.IntoIter.html
    
Offset 1, 223 lines modifiedOffset 1, 223 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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#150-155">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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#150-155">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.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.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>
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#149">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:·49729640a33cdf9398684816f7ff8eb4b9040b6d295bcb805cd99e221a74b903·...·]/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#149">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.83.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:·b2b91ee67bfad00e753096bce6cc2546fc461342d6331b953fa262a2cb3a001b·...·]/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="../../../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:·9ac1d02f5151dfb5b66f9bd2a0c763eb257b9a954633e458efeb0f43b79b62f2·...·]/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="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·366,·SHA:·c741c82b67c3939079f4e172f373da9c1ca7ba594c3373debbce8cf78e38cb4c·...·]/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#1711-1715">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:·0221386f93217b09a2a20509120062aeb418bbfa3264c30ee60fcb7db41826c2·...·]/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#1711-1715">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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·4409,·SHA:·9d622a021a541a58665202ce3bf9d6afbcf542a433ca9fee416516657a5c3765·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·d46300f5f6364f5088e3573bf2ce0e84bd70a8174b7b645a114d5e2d09574527·...·]/core/primitive.usize.html">usize</a>&gt;(17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7210,·SHA:·ab1c234fa76b8d644cf17c9dcf1cce3bc43026fffdf6c0f561b8f097cea04cfd·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self,18 ····&amp;mut·self,
19 )·-&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">where19 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
21 ····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:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
24 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
34 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
43 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
55 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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>·over63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
77 ····T:·'a,77 ····T:·'a,
78 ····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;,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
79 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
81 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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,83 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
84 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where84 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
88 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where88 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
92 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where92 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
95 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where95 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/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::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·reducing97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
98 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</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>(Self::<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,100 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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</[·...·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">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="https://doc.rust-lang.org/1.83.0/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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</[·...·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·the104 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
105 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
114 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
120 ····&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·returns120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
121 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iter[·...·truncated·by·diffoscope;·len:·997,·SHA:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
124 ····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>,124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
125 ····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·its125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
126 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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; 81283/318161 bytes (25.55%) of diff not shown.
316 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Iter.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="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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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#131-133">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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#131-133">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#1632-1636">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:·f518526d439b0dfc6762f0b5870ce5dd5999d5f2bcc339a3bb12b5884904d0d5·...·]/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#1632-1636">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.83.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:·574beea555b45473472858002086d9e8ea562ab9aecb1e5121389012f3205970·...·]/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#1668-1672">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:·eeccb0d23f237818120e49102730cce8c0557b9a075074cc7b6337b9e9c3fa33·...·]/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#1668-1672">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.83.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:·efd3064d2db95057cf0a9a849644d868e954eaa7fcd7ad368fdc8f3624d435bc·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·7118,·SHA:·aca8b0f896d10e5dbc9df98cd56a3efab1329a6f049f340c097bbf9dd484906e·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7862,·SHA:·a45a605da94f27b1ab6771d9f3e28b1deb686d2eb2f43f9e46f548d7947589c7·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where
17 ····<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:·ed6b944c01bd352ad5a3a10548c60fbc26244086c70b00c60744027bc2489848·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where17 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·38c687527441eaabc6b76127dd7fca9245f851343e95d5ab322b8c2aefea17f0·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where
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:·f7bbaaf123bbbaa81715357c9031db924b8544642e3dbccb585edd4878cf999a·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·c03acc7fca64ac0b3c6aacce869b03ed660fd69902bcf9a3ea493b74355dfb27·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
24 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
34 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
43 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
55 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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>·over63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
77 ····T:·'a,77 ····T:·'a,
78 ····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;,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
79 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
81 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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,83 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
84 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where84 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
88 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where88 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
92 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where92 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
95 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where95 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/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::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·reducing97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
98 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</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>(Self::<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,100 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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</[·...·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">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="https://doc.rust-lang.org/1.83.0/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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</[·...·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·the104 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
105 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
114 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
120 ····&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·returns120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
121 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iter[·...·truncated·by·diffoscope;·len:·997,·SHA:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
124 ····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>,124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
125 ····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·its125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
126 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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; 86709/323934 bytes (26.77%) of diff not shown.
308 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Range.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="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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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#166-168">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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#166-168">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#1744-1748">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:·55a1b7212b383282544131e6c228dd001f925e8cf216b1e058cfeb5faa60abee·...·]/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#1744-1748">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.83.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:·177748de0e10380c2178e2518ae03c738916668ee89660fd48bebbf33de8c23c·...·]/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#1778-1782">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:·1285f277f87de7cd2c27556bf331d8fa8c03160cc53004e3c770945f7ba27a3e·...·]/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#1778-1782">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.83.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:·fa8218492c542225f16981845e033fa13e1d3b9a6e7c3269b86862362ef27c98·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·3805,·SHA:·02678318d71ce1006f720efcaa853ac9f579d9e8530d7ab90f48199053a65240·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4237,·SHA:·9e9ded236dfd241d9be4b0530c21ec98708ce8dbf4cd72ec94f8cf92682aea6a·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where
17 ····<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:·2552881c973e3f3fb3622fdeccdf496d20bfc675cd5f32cb97df93c0075aee67·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where17 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·0dadfd04b48e2cae0d07bc397d9e4752bf6372711e70199ffcbeda6783f4fad8·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where
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:·f7bbaaf123bbbaa81715357c9031db924b8544642e3dbccb585edd4878cf999a·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·c03acc7fca64ac0b3c6aacce869b03ed660fd69902bcf9a3ea493b74355dfb27·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·5edbb3563fa6796877f4bd3d4f30dc77d0bc5c679f8e3ce8c16d5a94bf4a5ccc·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
24 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
34 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
43 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
55 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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>·over63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,75 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
77 ····T:·'a,77 ····T:·'a,
78 ····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;,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
79 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
81 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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,83 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
84 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where84 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
88 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where88 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
92 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where92 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
93 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
95 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where95 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/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::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·reducing97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
98 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</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>(Self::<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,100 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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</[·...·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">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="https://doc.rust-lang.org/1.83.0/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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</[·...·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·the104 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
105 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
114 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
120 ····&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·returns120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
121 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iter[·...·truncated·by·diffoscope;·len:·998,·SHA:·c360a4ee431d3893fe8628996760b71481359f5bb66d99199e3c116b26b49117·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,124 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
125 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····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·the126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
Max diff block lines reached; 86779/315185 bytes (27.53%) of diff not shown.
281 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.SymmetricDifference.html
    
Offset 1, 197 lines modifiedOffset 1, 197 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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#235">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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#235">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#1869-1873">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:·5c3a8dc93ae2012343d833e5e62d6df3162eb187b51ba6b93a0f47d77762b48b·...·]/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#1869-1873">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.83.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:·2ca32f0134bdc313e79f28a9e95d28bdc26a7c7d4f6569a422c862e69d6e1aef·...·]/core/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::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">where6 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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[·...·truncated·by·diffoscope;·len:·842,·SHA:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
11 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where15 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····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>17 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where18 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
21 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where21 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element25 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
26 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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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">where26 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="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·as29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
30 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where30 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</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·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>·methods31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
32 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See32 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
33 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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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">where33 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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">where35 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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:[·...·truncated·by·diffoscope;·len:·890,·SHA:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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">where37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
40 ····Self:·<a·class="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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<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></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
42 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where42 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····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,·but44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
45 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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where45 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,47 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
48 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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">where48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····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>·over50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
51 <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>,51 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
52 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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where52 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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">where55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
56 ····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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
57 ····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;,57 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
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'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
59 ····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;,59 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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><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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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;,62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
63 ····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:·ba5d8dc13415690639b34c34af73e313c8bb191158452ecb8371fc5c136768a7·...·]/core/primitive.bool.html">bool</a><div·class="where">where63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····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,65 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
66 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where66 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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,68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
69 ····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·returns69 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
70 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where70 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
73 ····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·the73 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
74 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where74 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····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,76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
77 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where77 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
78 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
80 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(80 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
81 ····&amp;mut·self,81 ····&amp;mut·self,
82 ····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,82 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
83 )·-&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">where83 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····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;,85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····&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·the86 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
87 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where87 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/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="https://doc.rust-lang.org/1.83.0/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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
96 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(96 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····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,98 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 )·-&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">where99 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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;,101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
102 ····&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·returns102 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
103 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where103 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····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:·998,·SHA:·c360a4ee431d3893fe8628996760b71481359f5bb66d99199e3c116b26b49117·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,106 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····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·the108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
109 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····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·the111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
112 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:·4aaf56d48604411272d713592bc4d0679dd000fc2f281a96b049147b915fc194·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,113 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····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·the115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
116 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"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·61552b1c1239cc6cc3e89b0aea7384e7e2ab53bd5c80152b0552dfef70b8e441·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····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·minimum·value·with·respect·to·the118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
119 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="S[·...·truncated·by·diffoscope;·len:·386,·SHA:·fe8bee3db36777bfea761e0c2fb3831d1af914b48db484031233fcedd5739256·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where119 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
120 ····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;,120 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
121 ····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;,121 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
122 ····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="primit[·...·truncated·by·diffoscope;·len:·812,·SHA:·a59284f611b878d41e6f7c7cdc90228b7b33e22ff7207d9646678123b9b10d40·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
123 ····T:·'a·+·<a·class="trait"·href="../../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,123 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
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="primit[·...·truncated·by·diffoscope;·len:·815,·SHA:·d22a65b4a6c05ec14ccdf73eeab35766112dfb3af41a0b15f8eabe9a5e036e50·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
125 ····T:·'a·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,125 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</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="primit[·...·truncated·by·diffoscope;·len:·918,·SHA:·2c4dc183ed119c4b8fbdddf0ec6b79f8032885e23a67d0277d7a32c4d337f548·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1110,·SHA:·8e928a34adcfe6314437c983df41039798fd9de66cfc14fac543f6c07926f3c2·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where
127 ····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·ite[·...·truncated·by·diffoscope;·len:·659,·SHA:·0442aa37363d29446244d586fd449258f332dc96d7be40547c9e6796c02efd80·...·]/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">where127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></sectio[·...·truncated·by·diffoscope;·len:·827,·SHA:·d3f339881e9074f32a4aa427d5a1514453148df4cb20556a2037ee8ccc54900d·...·]/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
Max diff block lines reached; 87973/287079 bytes (30.64%) of diff not shown.
279 KB
./usr/share/doc/rust-doc/html/alloc/collections/btree_set/struct.Union.html
    
Offset 1, 197 lines modifiedOffset 1, 197 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#307">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#307">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#1964-1968">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:·886165629e18834819d9c98892c865c9740aeb237625475af9868a6ebf824b30·...·]/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#1964-1968">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.83.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:·0d91902116f116362f00b6e7c20180f054323fccb970b0a7bdb6343275903e45·...·]/core/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::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">where6 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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[·...·truncated·by·diffoscope;·len:·842,·SHA:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
11 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where15 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····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>17 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where18 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
21 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where21 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
22 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element25 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
26 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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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">where26 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="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·as29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
30 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where30 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</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·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>·methods31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
32 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See32 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
33 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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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">where33 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
34 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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">where35 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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:[·...·truncated·by·diffoscope;·len:·890,·SHA:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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">where37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
38 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
40 ····Self:·<a·class="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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<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></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
42 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where42 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····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,·but44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
45 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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where45 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,47 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
48 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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">where48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
49 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····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>·over50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
51 <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>,51 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
52 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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where52 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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">where55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
56 ····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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
57 ····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;,57 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
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'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
59 ····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;,59 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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><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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
61 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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;,62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
63 ····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:·ba5d8dc13415690639b34c34af73e313c8bb191158452ecb8371fc5c136768a7·...·]/core/primitive.bool.html">bool</a><div·class="where">where63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
64 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····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,65 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
66 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where66 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
67 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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,68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
69 ····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·returns69 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
70 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where70 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
71 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
73 ····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·the73 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
74 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where74 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····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,76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
77 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where77 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
78 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
80 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(80 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
81 ····&amp;mut·self,81 ····&amp;mut·self,
82 ····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,82 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
83 )·-&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">where83 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····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;,85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····&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·the86 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
87 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where87 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/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="https://doc.rust-lang.org/1.83.0/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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
96 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(96 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····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,98 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 )·-&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">where99 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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;,101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
102 ····&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·returns102 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
103 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where103 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····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:·998,·SHA:·c360a4ee431d3893fe8628996760b71481359f5bb66d99199e3c116b26b49117·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,106 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····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·the108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
109 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····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·the111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
112 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:·4aaf56d48604411272d713592bc4d0679dd000fc2f281a96b049147b915fc194·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,113 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
114 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····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·the115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
116 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"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·61552b1c1239cc6cc3e89b0aea7384e7e2ab53bd5c80152b0552dfef70b8e441·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····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·minimum·value·with·respect·to·the118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
119 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="S[·...·truncated·by·diffoscope;·len:·386,·SHA:·fe8bee3db36777bfea761e0c2fb3831d1af914b48db484031233fcedd5739256·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where119 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
120 ····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;,120 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
121 ····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;,121 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
122 ····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="primit[·...·truncated·by·diffoscope;·len:·812,·SHA:·a59284f611b878d41e6f7c7cdc90228b7b33e22ff7207d9646678123b9b10d40·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
123 ····T:·'a·+·<a·class="trait"·href="../../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,123 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
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="primit[·...·truncated·by·diffoscope;·len:·815,·SHA:·d22a65b4a6c05ec14ccdf73eeab35766112dfb3af41a0b15f8eabe9a5e036e50·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
125 ····T:·'a·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,125 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</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="primit[·...·truncated·by·diffoscope;·len:·918,·SHA:·2c4dc183ed119c4b8fbdddf0ec6b79f8032885e23a67d0277d7a32c4d337f548·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1110,·SHA:·8e928a34adcfe6314437c983df41039798fd9de66cfc14fac543f6c07926f3c2·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where
127 ····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·ite[·...·truncated·by·diffoscope;·len:·659,·SHA:·0442aa37363d29446244d586fd449258f332dc96d7be40547c9e6796c02efd80·...·]/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">where127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></sectio[·...·truncated·by·diffoscope;·len:·827,·SHA:·d3f339881e9074f32a4aa427d5a1514453148df4cb20556a2037ee8ccc54900d·...·]/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
Max diff block lines reached; 86993/285403 bytes (30.48%) 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#3428">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#3428">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#3426">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:·7993a4a4f36c045b10cf94f8fce9ebb8555bb607cc15bafdde5322d361b4ebab·...·]/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#3426">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.83.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:·5c6adc95ea1e4250e17bdfcc87482d66b2664ebc9a095ca529a9d6bce5f7c21d·...·]/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#3426">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:·4af82e5f25d180b7a298f834ad110c453551dd87231221426feff0031a81d6d8·...·]/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#3426">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.83.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:·d91f2d9211cce68d563c4d5dc1ab779bca7bf02a9646447a74629579b0954bed·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/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·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../../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:·48923b2de6bcb5689f23d03d435445eb4051a378bddec4b7f5955358ab377c4e·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·6dddcd23cf7bd50ffe1d6d24130ae68bd99683dd24f390b367def62c0b5604d8·...·]/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#2672-2686">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="../../../core/marker/trait.Sized.html"·title="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:·159b4752d7269f8a67d91eeb3d323daa68180c8d895e0786157efcabbe8bfa96·...·]/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="https://doc.rust-lang.org/1.83.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:·88a7a0c9b7c6386b2fb76f817d083eedcf15d69d318f12ab100c3dafb5b6cc71·...·]/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.7 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="../../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:·cb893f9811c13849fcd968b518a4958c65ffa8e2ae96f68f0b6dbdcc8b9f9d22·...·]/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="https://doc.rust-lang.org/1.83.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:·a14ee763055ff6bcc267e069e26b2f026306cea9596ea09acecdea25f4d9877f·...·]/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="../../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:·cb4f0c5823ca1f7105171b52df5dc77945ddea25b1d4060ee4131cbcc32e4282·...·]/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="https://doc.rust-lang.org/1.83.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:·7a0c62d579b627d389b717438d6ec9c8ed58f9bb2848d375dfffba19c518f5d1·...·]/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="../../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:·c34a95c6efaeaed91e4c97532813efeac264dd0f2d7f606ace0bf045ba7c0b1a·...·]/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="https://doc.rust-lang.org/1.83.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:·0b9adb8d7f7c055e75c559a7bea725e50e46a536864649903668b90b18bf446b·...·]/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="../../core/marker/trait.Sized.html"·title="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:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·177b78315f049c4065999398ed2f89f85b6487d450f04912cef3a3be057e45e9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where17 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·604f234273b763a6bed19dbd345c594cd2aa8776b239765ce764b1e7c24bf9c9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</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·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1555,·SHA:·b2e8399bcb848ad82814e52c9e74a0b51aee0637e5710ba4961cf3ab981f934e·...·]/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="https://doc.rust-lang.org/1.83.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:·1798,·SHA:·b3518463203d4a716ba597287e3dafcec980d20bf1a1dbdc04993b4e96db5c89·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·0f36698ef1f8522439780e4de3b8f612c0a7a09c8f896d4b7a61bbeffa463db0·...·]/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="https://doc.rust-lang.org/1.83.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:·e25370032e85c931ad62255b1432a49de1bcc5c915b5198766f5b1f371bb8599·...·]/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="../../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:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../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:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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="../../../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>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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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="../../../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·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="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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>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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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="../../../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>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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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="../../../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,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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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,
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="../../../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,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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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,
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="../../../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:·af190025897583a3e2a0da29c0a9647d57c960168f4a5bc7bbc2fbab28e6450f·...·]/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="https://doc.rust-lang.org/1.83.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:·dfc674a026d30bc925a6a5d6f29fe4aeb2876d4f89f2600dd9875aeac664a700·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,36 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
37 ····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">where37 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·6347bef61995619f02a2c3da7cbfb5fea5410231576fdfbd1b804d080725d533·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,38 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
39 ····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:·7e15b9b0d422bd465a639539b8b90816ab7adb3072cd21490eac9f166da2fc2b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where39 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a03a1474362a82e4fba0d79578e0660d420492b00c3248fa6dca2e795990bbd5·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where42 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
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:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·a7d1f388ba07396e87261271b8aa586ab0c147478908836ee7ff521ef25e555e·...·]/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="https://doc.rust-lang.org/1.83.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:·e3c2dfd0abdfa96e39e7563c61a47234eecf86fd351479c84cf8586392bfaf0c·...·]/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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="../../../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>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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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="../../../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·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="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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>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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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="../../../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>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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.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">where
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>58 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.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,
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="../../../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="https://doc.rust-lang.org/1.83.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,
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="../../../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,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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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,
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="../../../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’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="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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’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="../../../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,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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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,
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="../../../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·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="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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:·658977443e96e69e0d1d8564315283a41b6a8b8ff592e9e280394f6931ed1ce0·...·]/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="https://doc.rust-lang.org/1.83.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:·76c9116727780e72fa98ab0815291e5e03ced9327ae4dd09064f0cbb4dc587f3·...·]/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="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,117 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
118 ····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:·745fb28d418e0ffcc06111c5baa596da22d129f39bdf4603c3c174967c67cfb4·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where118 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e395b810917b976935f41df19b559158b1b239edd998fb8c89915bf7b21d1331·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·747c7386c78d143df32a87bc5392f871c446e3ebe1cc7a6c5b26d40164aaf5ef·...·]/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="https://doc.rust-lang.org/1.83.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:·8ce9177d818d5d0bda38ff64fd6045887c1cc85720e02f055745b88c86a2f6f5·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../../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:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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>
264 KB
./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.ExtractIf.html
    
Offset 1, 196 lines modifiedOffset 1, 196 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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="../../../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>2 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·36,·SHA:·76dcb874d2cce3d908bc7a10e51a060dfb99578d8fb9b9f9dcbc177558fc8378·...·]/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="../../../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:·a25e986b40084cd8afcc33ed6e0214dff671d16da8a0fc19231a5854c6f5b016·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·1416,·SHA:·16faa13c1a6c9dbcc50ac176fe146def930b5eaa3d23a75f8b11d4bc7e4512fb·...·]/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="../../../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:·eacacd867790eab1688248d0f626de1cb2ce0445dba18aebbd1dabfa6310b00b·...·]/core/primitive.usize.html">usize</a>&gt;(5 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·2972,·SHA:·dade8530fc258dd1754280b5601400fd22206484505d57e36571c51ee2514dea·...·]/core/primitive.usize.html">usize</a>&gt;(
6 ····&amp;mut·self,6 ····&amp;mut·self,
7 )·-&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">where7 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><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'>Consumes·the·iterator,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
12 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="https://doc.rust-lang.org/1.83.0/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>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where16 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>18 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
19 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
22 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element26 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
31 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
43 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····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,·but45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,48 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
49 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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">where49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
50 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····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>·over51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
52 <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>,52 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
53 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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where53 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
54 ····Self:·<a·class="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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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">where56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
57 ····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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
58 ····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;,58 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
59 ····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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
60 ····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;,60 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
62 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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;,63 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
64 ····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:·ba5d8dc13415690639b34c34af73e313c8bb191158452ecb8371fc5c136768a7·...·]/core/primitive.bool.html">bool</a><div·class="where">where64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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,66 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
67 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where67 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
68 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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,69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
70 ····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·returns70 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
71 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where71 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
74 ····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·the74 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
75 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where75 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
76 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····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,77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
78 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where78 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
79 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
81 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(81 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
82 ····&amp;mut·self,82 ····&amp;mut·self,
83 ····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,83 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
84 )·-&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">where84 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····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;,86 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
87 ····&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·the87 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
88 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where88 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
89 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
91 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where94 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
95 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·returns96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
97 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(97 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
98 ····&amp;mut·self,98 ····&amp;mut·self,
99 ····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,99 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where100 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····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;,102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
103 ····&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·returns103 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
104 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where104 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····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:·998,·SHA:·c360a4ee431d3893fe8628996760b71481359f5bb66d99199e3c116b26b49117·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where106 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,107 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
108 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····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·the109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
110 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where110 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····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·the112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
113 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:·4aaf56d48604411272d713592bc4d0679dd000fc2f281a96b049147b915fc194·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where113 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,114 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
115 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····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·the116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
117 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"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·61552b1c1239cc6cc3e89b0aea7384e7e2ab53bd5c80152b0552dfef70b8e441·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where117 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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·minimum·value·with·respect·to·the119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
120 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="S[·...·truncated·by·diffoscope;·len:·386,·SHA:·fe8bee3db36777bfea761e0c2fb3831d1af914b48db484031233fcedd5739256·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where120 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
121 ····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;,121 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
122 ····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;,122 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
123 ····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="primit[·...·truncated·by·diffoscope;·len:·812,·SHA:·a59284f611b878d41e6f7c7cdc90228b7b33e22ff7207d9646678123b9b10d40·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
124 ····T:·'a·+·<a·class="trait"·href="../../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,124 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
125 ····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="primit[·...·truncated·by·diffoscope;·len:·815,·SHA:·d22a65b4a6c05ec14ccdf73eeab35766112dfb3af41a0b15f8eabe9a5e036e50·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
126 ····T:·'a·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,126 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,
127 ····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="primit[·...·truncated·by·diffoscope;·len:·939,·SHA:·114ebf54e490cfb70af969ced3a6e4fdedb7156ed00d43b31c99b8ff474d8749·...·]/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">where127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1155,·SHA:·71a9c4b27e0055da0965cc3108f812a4ea2b36f4852011f565d6784cb5fb0e50·...·]/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
Max diff block lines reached; 79003/270518 bytes (29.20%) of diff not shown.
318 KB
./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.IntoIter.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·owning·iterator·over·the·elements·of·a·`LinkedList`."><title>IntoIter·in·alloc::collections::linked_list·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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-Default-for-IntoIter%3CT%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-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">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/linked_list.rs.html#141-146">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>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·owning·iterator·over·the·elements·of·a·`LinkedList`."><title>IntoIter·in·alloc::collections::linked_list·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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-Default-for-IntoIter%3CT%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-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">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/linked_list.rs.html#141-146">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>LinkedList</code>.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.LinkedList.html#method.into_iter"·title="method·alloc::collections::linked_list::LinkedList::into_iter"><code>into_iter</code></a>·method·on·<a·href="struct.LinkedList.html"·title="struct·alloc::collections::linked_list::LinkedList"><code>LinkedList</code></a>2 <p>This·<code>struct</code>·is·created·by·the·<a·href="struct.LinkedList.html#method.into_iter"·title="method·alloc::collections::linked_list::LinkedList::into_iter"><code>into_iter</code></a>·method·on·<a·href="struct.LinkedList.html"·title="struct·alloc::collections::linked_list::LinkedList"><code>LinkedList</code></a>
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>3 (provided·by·the·<a·href="https://doc.rust-lang.org/1.83.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>
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/linked_list.rs.html#139">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:·4446,·SHA:·614ee483c02340571ee0877355754dff94fd512d38ec388f5a59ddb26a561e30·...·]/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::IntoIter</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-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/linked_list.rs.html#139">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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·[·...·truncated·by·diffoscope;·len:·4686,·SHA:·82ec1e2247fd12c02873034591ef6da7db7c7bf7d1422f38f13ccc7d50df82e2·...·]/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::IntoIter</code>.</p>
  
5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·linked_list::IntoIter&lt;u8&gt;·=·Default::default();5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·linked_list::IntoIter&lt;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::IntoIter%3Cu8%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::IntoIter%3Cu8%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-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/linked_list.rs.html#2007-2012">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>&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.IntoIter.html"·title="struct·alloc::collections::linked_li[·...·truncated·by·diffoscope;·len:·3801,·SHA:·1b44800415985273361d7a51295a954bd383cf983e54e9604b80a419bb8bd933·...·]/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-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/linked_list.rs.html#2007-2012">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>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.IntoIter.html"·title="struct·alloc[·...·truncated·by·diffoscope;·len:·4281,·SHA:·55b58b137143cc6b71d98a7e354809a756abda913e07a21ca3d65c73eb388dda·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·6449,·SHA:·86270a132c9bb52e40c84a53d3ab15c59b709685e6a1c1dbe2eacdc534c03e6d·...·]/core/primitive.usize.html">usize</a>&gt;(16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7073,·SHA:·381e6e14b3e5a576f61a7d3c5a8d0b2f68620d5ca8a2fbd1739ff2a85c3767cd·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&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">where18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</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><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:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
23 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>29 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
33 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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:[·...·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·element37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
42 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
54 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····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,·but56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,59 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
60 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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>·over62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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;,69 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,71 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,74 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
76 ····T:·'a,76 ····T:·'a,
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">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,78 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../../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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where80 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
81 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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,82 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../../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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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="https://doc.rust-lang.org/1.83.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·returns
87 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the90 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
91 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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,93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
94 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·reducing96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../../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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(97 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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,99 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../../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">where100 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·the103 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
105 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
107 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where110 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../../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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,115 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where116 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,118 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
119 ····&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·returns119 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where120 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····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:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
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::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
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/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·its124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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="../../../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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/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="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,126 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
Max diff block lines reached; 91113/325168 bytes (28.02%) of diff not shown.
313 KB
./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.Iter.html
    
Offset 1, 216 lines modifiedOffset 1, 216 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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="../../../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:·fd426c9a63ffbb607a693431c682de4d0c3b51b41a3f00b5e24555e93c6d4a92·...·]/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="https://doc.rust-lang.org/1.83.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:·98331bbec660343694a289936edd5aee36603c98e386258e431c6d259bee0692·...·]/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="../../../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:·f95f6a78607602158148e2b94eb7c30b7a9f7929eebe8c1c5b77605a6e7b2a28·...·]/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="https://doc.rust-lang.org/1.83.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:·3688285c54686a37141ebd5b5dfd9a372dcf82d8e6c9ce81e0b01de2aeac9531·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·c2965527510972429b041e55b337eaa147f81390e0f4789baa40facb35e39a3d·...·]/core/primitive.usize.html">usize</a>&gt;(16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7902,·SHA:·a2383edb02855624f112099a0da32aa3ef9b50346a5c46e2d37473fdedb3a329·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&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">where18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</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><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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
22 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>28 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
32 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element36 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
41 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
53 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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,·but55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,58 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
59 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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">where59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
60 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····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>·over61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
62 <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>,62 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
63 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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where63 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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">where66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
68 ····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;,68 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
69 ····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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
70 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
72 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
74 ····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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
75 ····T:·'a,75 ····T:·'a,
76 ····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;,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
77 ····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,77 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.78 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
79 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where79 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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">where82 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
86 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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">where86 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
87 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
89 ····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·the89 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
90 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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">where90 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
91 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where93 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
96 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(96 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 )·-&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">where99 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
102 ····&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·the102 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
103 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where109 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
110 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
112 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(112 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
113 ····&amp;mut·self,113 ····&amp;mut·self,
114 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where115 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
118 ····&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·returns118 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
119 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where119 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····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>,122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
123 ····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·its123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
124 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,125 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
126 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 87349/320536 bytes (27.25%) of diff not shown.
299 KB
./usr/share/doc/rust-doc/html/alloc/collections/linked_list/struct.IterMut.html
    
Offset 1, 208 lines modifiedOffset 1, 208 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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="../../../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:·6b18dcc5414fba0c3b03584a8fb93ae51001768a54556e88eb3ff0015ae21422·...·]/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="https://doc.rust-lang.org/1.83.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:·0821de5f98535770fdc83280a8209297c5107618ee6e0de9576bd36056fa279e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,5 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes7 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·0b49a2e11909a67c94fc988b4ef190d58a9bcca6d07b42e23d187b6f8d11e6cb·...·]/core/primitive.usize.html">usize</a>&gt;(13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7944,·SHA:·dc60ddea2c7c99753d5dd1b36b89f64c59624ca4fc96c4bd790881453b330031·...·]/core/primitive.usize.html">usize</a>&gt;(
14 ····&amp;mut·self,14 ····&amp;mut·self,
15 )·-&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">where15 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
17 ····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:·745035049bc2b5afce519612a3b6f5e6be3b659f225fd9fc37531eb402a1c921·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
19 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where23 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····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 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
26 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where26 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
29 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where29 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
30 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element33 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
34 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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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">where34 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
35 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
37 ····Self:·<a·class="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·as37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
38 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where38 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
39 ····Self:·<a·class="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>·methods39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
40 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See40 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
41 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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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">where41 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
42 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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">where43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
44 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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">where45 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
46 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where47 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
48 ····Self:·<a·class="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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="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·fewer49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
50 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where50 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
51 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
53 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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where53 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
54 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,55 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
56 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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>·over58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
67 ····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;,67 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
68 ····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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····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;,70 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
71 ····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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
72 ····T:·'a,72 ····T:·'a,
73 ····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;,73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
74 ····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,74 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
75 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.75 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
76 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where76 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,78 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../../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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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="https://doc.rust-lang.org/1.83.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·returns
83 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the86 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
87 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../../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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(93 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../../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">where96 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·the99 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
103 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where106 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·returns108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../../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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,114 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
115 ····&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·returns115 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where116 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
117 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····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:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where118 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
119 ····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>,119 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
120 ····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·its120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
121 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,122 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
123 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····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·the124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
125 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where125 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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·the127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
Max diff block lines reached; 79231/305741 bytes (25.91%) 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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../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="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.bool.html">bool</a><div·class="where">where
130 ····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·the130 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·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="../../../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·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="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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·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="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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·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="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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·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="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.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>·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; 155607/181791 bytes (85.60%) 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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="../../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:·e4afe3701120e5b2e464aa5050c0d06e554b8e3bcf9eded4aa5a1464ae2febdd·...·]/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="https://doc.rust-lang.org/1.83.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:·52eafab4ce199f8f9d747c085ac085e0c1e16125998e04bc0275a21b7c6d2115·...·]/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="../../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:·e0ad266aa909ac518e8b34ba4ea44bcd6605ac5e67f07024890eaa3c1b8bf985·...·]/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="https://doc.rust-lang.org/1.83.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:·143f1f7e88422abf921215af5f584365b9dea7a1ad494744cb2560362da52314·...·]/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·[·...·truncated·by·diffoscope;·len:·672,·SHA:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·177b78315f049c4065999398ed2f89f85b6487d450f04912cef3a3be057e45e9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where7 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·604f234273b763a6bed19dbd345c594cd2aa8776b239765ce764b1e7c24bf9c9·...·]/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[·...·truncated·by·diffoscope;·len:·1555,·SHA:·0df9b126e90de6e139ef2635b6f5a00b8152d9da651760f76203fc14ebb12acc·...·]/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="https://doc.rust-lang.org/1.83.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:·1798,·SHA:·36cf4a134b790fc0e280599ecc1e308b33fb241e7dce521b3d8f6a5c552b0aeb·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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=[·...·truncated·by·diffoscope;·len:·156,·SHA:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../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:·c2c8c9a4a4178ce9f649b57ef777997f02105c416fe8b6a7efafe289a2c82f94·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·3bbde9fc45defa1dca05b2d321fdaad6904f701633b311a788797b29fc3d0d8c·...·]/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#2672-2686">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="../../core/marker/trait.Sized.html"·title="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:·b3522f6656a75b8786d727c522d67358e29dfa2964a2f89c2aa386e5cf9583ce·...·]/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="https://doc.rust-lang.org/1.83.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:·4e66fd818d0db79470c3c05df8933adf2420d3b968fd4ca310e2824aa93e7fa4·...·]/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·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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/vec_deque/struct.Drain.html
    
Offset 1, 212 lines modifiedOffset 1, 212 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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="../../../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:·232e2d112b9bc789057ac6a8f9929eb61f31efb224989e7a35d13fd77bcb6f43·...·]/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="https://doc.rust-lang.org/1.83.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:·c75a83bd9d2ec480dd9a66bd387d4e37bd240d3aab2682e433d03957196bf9a9·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,5 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes7 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·432fbd7df34121b09ed7a111d2c9f9ef3813344a7b03e8564420fca277fda987·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·0856b7cde5f1a94949769b92951f80d5509526b0c016a362ac1efc5234412ad8·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·f9de1fb6b9f39e61c960ce6541ed831b2b7c35f71fcd3fc524cedd3fe4eaa5c2·...·]/core/primitive.usize.html">usize</a>&gt;(13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8532,·SHA:·fca7a7758d70c128d3874dcd1dc2af44e68c4218ab78d1138163a99db0b0fd53·...·]/core/primitive.usize.html">usize</a>&gt;(
14 ····&amp;mut·self,14 ····&amp;mut·self,
15 )·-&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">where15 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
17 ····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:·03b672ed897e8ab1ab3e659d4ecc66abb0ca27f3881bdc0805412b7867a4a719·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../../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:·1cec792d42bca0d18faa662e25268a0eaf4b723d015f9640e72b61ad2997ca05·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
20 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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>26 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where27 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each29 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
30 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where30 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
31 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element34 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
35 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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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">where35 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
38 ····Self:·<a·class="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·as38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
39 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where39 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
40 ····Self:·<a·class="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>·methods40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
41 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See41 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
42 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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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">where42 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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">where44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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">where46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where48 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
50 ····Self:·<a·class="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·fewer50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
51 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where51 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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,·but53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
54 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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where54 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,56 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
57 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····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>·over59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
68 ····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;,68 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
69 ····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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
70 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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;,71 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
72 ····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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
73 ····T:·'a,73 ····T:·'a,
74 ····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;,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
75 ····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,75 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
76 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.76 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
77 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where77 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
78 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,79 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../../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:·6302ec07163a14714b18baf7825c7251347118c04a292b925a8defc368a685c9·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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="https://doc.rust-lang.org/1.83.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·returns
84 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:·56b0505e0429473ac8490934b265d995c69828e1acbb78eb2cf8602080970901·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
88 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:·6945f27386af8fee6122829fbbad5c35fdb44d2ee9a7ff67a0a20ec14da39a42·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·cd07be9eb8aef1504d7d82e7924ac87eb53d213314d600f923a1388cd9ea1aaf·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::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·reducing93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../../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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(94 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../../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">where97 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·the100 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where107 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../../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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
116 ····&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·returns116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where117 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where119 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
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::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
121 ····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·its121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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="../../../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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/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="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,123 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····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·the125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
126 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/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="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
127 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 81475/309497 bytes (26.32%) of diff not shown.
313 KB
./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.IntoIter.html
    
Offset 1, 214 lines modifiedOffset 1, 214 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../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:·15e1719f857d3dcda03aa94e45ad11945c149ac6334c3d2ec73ccfe6a714dff6·...·]/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="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·[·...·truncated·by·diffoscope;·len:·7374,·SHA:·25d1675e36e7d2cbd0f08ea0648f64fc42f317680996f2ce70f014c83c7b5688·...·]/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="../../../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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes6 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·d96b35d4ef9ea086bb69b835a3b484fb4166d4bffa1443220e7f144a4502146a·...·]/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="https://doc.rust-lang.org/1.83.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:·83fbcd3dd1a8a34fc864a8eff0c0372df95af0f89353cbe5f3eb1f09d8479628·...·]/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="../../../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,8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
9 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:·95cf19f0392fff11cab1db6b926861f33cea63469ca7a967b2cc802c40c13377·...·]/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="https://doc.rust-lang.org/1.83.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:·74e566d58a8bb427fbc3e6862354e02af87b5729370413f8949a20d2da2c8261·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:[·...·truncated·by·diffoscope;·len:·8398,·SHA:·e3277d11ec934ccb811d49dbe0e71c92860f61367751c6dd68ad33959a3be059·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·9190,·SHA:·7754be3a31bb68f5b8d86b312a26145d7cac0e70225e6e010b6bcc61d0675da1·...·]/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="../../../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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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="https://doc.rust-lang.org/1.83.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·returns
14 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:·991e73239a83b22cd5d3b419926c3562c6198d2a54ac699fe205e683e92a2cb8·...·]/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="https://doc.rust-lang.org/1.83.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:·205549197314ba5354dc50e343a839de54eaebd84c87514e653f05faeebd4c64·...·]/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="../../../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,15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
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:·fdeb7d125a44af9dffded80d929178ccd006aaf99f508cc0d4253ed29138fe6f·...·]/core/primitive.usize.html">usize</a>&gt;(16 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c5dc9d3902ba2b3097aea79b1cfedf79b634290107d286c581c6eb8e26b06555·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&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:·8163991ef323af7afd36995ce019c45bebd2284c15a1dc9f638c50f3b4bddcaf·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·2939,·SHA:·ffaa94bbb72aa7c3d50c07ec14a009af68c53683af42b401d9360faffc9c83cc·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
20 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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>26 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where27 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each29 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
30 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where30 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
31 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element34 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
35 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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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">where35 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
36 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
38 ····Self:·<a·class="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·as38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
39 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where39 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
40 ····Self:·<a·class="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>·methods40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
41 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See41 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
42 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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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">where42 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
43 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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">where44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
45 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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">where46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
47 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where48 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
50 ····Self:·<a·class="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·fewer50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
51 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where51 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
52 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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,·but53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
54 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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where54 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
55 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,56 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
57 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····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>·over59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
68 ····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;,68 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
69 ····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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
70 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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;,71 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
72 ····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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
73 ····T:·'a,73 ····T:·'a,
74 ····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;,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
75 ····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,75 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
76 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.76 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
77 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where77 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
78 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,79 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../../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:·af9569aebf9628b48b2a750938a3356a08a6524f1019570c83987a9a531e48c8·...·]/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 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.83.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:·e3d897d44df3dae7ac7124bbc28956b2162c6cb742072d9f945cc178f70aeae6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the83 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
84 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:·a4bcdbebc7e4e9619700a5b1fa161feb13a57ad404c7a7d5e4895a9974c4bde7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where84 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·55da9d2eafc5b29aede623a11a0bd0fd119d24fed5bbdee7540356cdb8aeefc9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
85 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·reducing86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
87 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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(87 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
88 ····&amp;mut·self,88 ····&amp;mut·self,
89 ····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,89 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
90 )·-&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">where90 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····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;,92 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
93 ····&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·the93 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
94 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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/core/primitive.bool.html">bool</a><div·class="where">where94 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
95 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
97 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
99 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
100 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where100 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
101 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·returns102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
103 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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(103 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
104 ····&amp;mut·self,104 ····&amp;mut·self,
105 ····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,105 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where106 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····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;,108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
109 ····&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·returns109 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
110 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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where110 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
111 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····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:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where112 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
113 ····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>,113 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
114 ····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·its114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
115 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where115 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,116 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
117 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····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·the118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
119 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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·the121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
122 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:·4aaf56d48604411272d713592bc4d0679dd000fc2f281a96b049147b915fc194·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,123 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
124 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····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·the125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
126 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"·tit[·...·truncated·by·diffoscope;·len:·511,·SHA:·61552b1c1239cc6cc3e89b0aea7384e7e2ab53bd5c80152b0552dfef70b8e441·...·]/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="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
127 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 92401/320283 bytes (28.85%) of diff not shown.
312 KB
./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.Iter.html
    
Offset 1, 214 lines modifiedOffset 1, 214 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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-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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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-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="trait-implementations"·class="section-header">Trait·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#47-51">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:·cf61934bddfcece7a34c96a59f193bf7f1808cf377f7fd7140e0baa554ef332d·...·]/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>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/vec_deque/iter.rs.html#47-51">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.83.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:·221e9a86eaf10095a1689d385cd30974579dcea55a3a53caec25ccb1ba69014b·...·]/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>
  
5 <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();5 <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();
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::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>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::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>
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/vec_deque/iter.rs.html#128-171">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:·271b8e085633b1e57f595398461a3312dec6cf97a8928637efc37f1bca038917·...·]/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">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/vec_deque/iter.rs.html#128-171">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.83.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:·b88a844f4f6248688f4891d3f80f47f4b3aa305fe5d1735ed24a1c82ae96d0c8·...·]/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
8 ····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,8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
9 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:·e5db7f8598196a0beed037150585f01ffcb8c9f6300ec1be2ce3de5311036dc0·...·]/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 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·a8325708291bb6bdee0702b38abda554b22a417de056525c413d26e90884d36e·...·]/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 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·68c2883809ff71aa230f60c3662dde79e5e7269b4f81ee3012572583abf9b1ff·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where12 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·0bf3a52bad770362d7c19abda97f851e11f80191c28f6407a3b09c6471d113c8·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·7469,·SHA:·5f754910f67687a395ba4ae492a9b0b17d670d393e4fd0c1dcac609a8220047c·...·]/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">where14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8213,·SHA:·15032259ff187d299b69784b910fe6581f97d7783181ba070ed455ff03e3d286·...·]/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
15 ····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,15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
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.try_fold"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/c[·...·truncated·by·diffoscope;·len:·143,·SHA:·71f15bbcbb6982723f5bb7b88e7e209d503ec56c17b9be74eead7de24ffd8d82·...·]/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">where16 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·191,·SHA:·d4c3e46093e9701b952cc95b8cf95bfec56a06bda58f4bc615c7e7038b2932fb·...·]/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
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,17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns18 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
19 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:·dd4b4ec0a8d5c4626a0d5e690ac53b846033d4f7e70a10d14a52113552bd8a14·...·]/core/primitive.usize.html">usize</a>&gt;(19 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·9fac4f01b7e41a46a01ca276c2f42df00d5283bb18fc9be467e9da6564ff229b·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self,20 ····&amp;mut·self,
21 )·-&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">where21 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
23 ····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:·f735e197e7d7c8647b429a0b3d77cfdecc3844112b18fb3a04740100f6c7e59d·...·]/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="https://doc.rust-lang.org/1.83.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:·8521bed019beec8b9c246ba9bd0cf8712a9a98144cf87b06b0ea5920d221dcec·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
25 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>31 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
35 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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:[·...·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·element39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
44 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
56 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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,·but58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
62 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····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>·over64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,73 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
78 ····T:·'a,78 ····T:·'a,
79 ····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;,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
80 ····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,80 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
82 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where82 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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,84 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
85 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:·af9569aebf9628b48b2a750938a3356a08a6524f1019570c83987a9a531e48c8·...·]/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 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.83.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:·e3d897d44df3dae7ac7124bbc28956b2162c6cb742072d9f945cc178f70aeae6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the88 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
89 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:·a4bcdbebc7e4e9619700a5b1fa161feb13a57ad404c7a7d5e4895a9974c4bde7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where89 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·55da9d2eafc5b29aede623a11a0bd0fd119d24fed5bbdee7540356cdb8aeefc9·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::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·reducing91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../../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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(92 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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,94 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../../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">where95 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·the98 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·returns107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../../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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
114 ····&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·returns114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where115 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·997,·SHA:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where117 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
118 ····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>,118 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
119 ····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·its119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
120 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,121 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····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·the123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
124 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····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·the126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
Max diff block lines reached; 87837/319151 bytes (27.52%) of diff not shown.
298 KB
./usr/share/doc/rust-doc/html/alloc/collections/vec_deque/struct.IterMut.html
    
Offset 1, 210 lines modifiedOffset 1, 210 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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-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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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-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="trait-implementations"·class="section-header">Trait·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#25-29">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#26-28">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#32-43">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:·314,·SHA:·6912db2ab26a4aa35e3d89c12770d95589b9662694cdedbc3319b612d2b117c6·...·]/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>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/vec_deque/iter_mut.rs.html#25-29">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#26-28">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#32-43">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.83.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:·362,·SHA:·cf8ecd8ba31fe27db2b6daadbf333559f76f4fcda341864997be56f4d58978fe·...·]/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>
  
5 <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();5 <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();
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::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>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::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>
7 </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#119-162">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:·84aef0e47355068d1e45a455f5c4e145b67868ffc29a80605f8d81cfe02ee242·...·]/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">where7 </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#119-162">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.83.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:·92fb7b3ff5528a2bd8292ed14e458b5d8552e7f82a4bfa3d1e10ab62bd0a43b5·...·]/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
8 ····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,8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
9 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:·a39bf0f06151b814b6ec375cf3735c2986118aad608961ebc0e912bd592833a2·...·]/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 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·a54dae56c8f25153bef6a524f6d6a9e11e60399e63fa3defb0cfba6d24ffa6c8·...·]/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 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·takes11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../../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:·68c2883809ff71aa230f60c3662dde79e5e7269b4f81ee3012572583abf9b1ff·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where12 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·0bf3a52bad770362d7c19abda97f851e11f80191c28f6407a3b09c6471d113c8·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·7543,·SHA:·ae8d9a8625b4939503efcf9ae2ba88860404b327c0568edbd411d76a3f49969b·...·]/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">where14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8287,·SHA:·32bc08ad40cba1e723ad102435106716f59bdfa2338b8e83a78894862aaadd27·...·]/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
15 ····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,15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
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.try_fold"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/alloc/c[·...·truncated·by·diffoscope;·len:·146,·SHA:·b24f17eb2178dd8285f74a7c1ed9dc47e054ca33b11e3e1dc321dd63e85e1604·...·]/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">where16 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·194,·SHA:·1eab99d90617fe7255276ab667fd0d76c7feda0257f723d234c526ffaac527ab·...·]/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
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,17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·returns18 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
19 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:·1075,·SHA:·5a5970a5137169c19f5e118a4d55ef625fda029ce5023f0e282932ac146c6ae4·...·]/core/primitive.usize.html">usize</a>&gt;(19 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·1267,·SHA:·a8b548fc5dd6fd93a7f5627610145ffea893cab17ea2f7ef3d0bf11ddad96b62·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self,20 ····&amp;mut·self,
21 )·-&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">where21 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·02ee72315c529a7043dbef137116a46526ab3aaca75209e4e75700a2a44e11af·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
23 ····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:·f735e197e7d7c8647b429a0b3d77cfdecc3844112b18fb3a04740100f6c7e59d·...·]/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="https://doc.rust-lang.org/1.83.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:·8521bed019beec8b9c246ba9bd0cf8712a9a98144cf87b06b0ea5920d221dcec·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·by
25 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:·16940ac3e78f721cac027331fd4ada534fe831401d0f36abdfc63b8ca3e59429·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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:·967d010a4bbc4993cf89c233db4fdc19612fbb64b867366c1238b3e72c782009·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····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:·574,·SHA:·3c6faead16ca9d6e6641af5ce371b1c55eb3cd377effe5615755c0b5668e181e·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>31 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·00e60c3068b3410ae37dfc3f192cc60977c08f37b6f57c604db7ec3e8b7998e0·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
35 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:·2e527ee5c6d6c54d804ac8d474a15bc7958af105fbe9eceec1ad2b07399eb38f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·45f1e9cc63bf0595992c5d575462c77ef8b14c23c27c8c0923b8b4f35fa2b2b1·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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:[·...·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·element39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../../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:·8a168302c7109da26189feda1b75234fedc5eaa35058d232c823280f4004ec19·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·ce6c856b2ec5d7cf737d367df53b2e50b3da41e61b2073e834eb4a7051caaa02·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·as
44 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:·93c1f7caa28a8b1537b1732baaeb8f570af84303ff63493466ef1c76ef10880f·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../../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>·methods45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../../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:·da83f72a8d90b94946812b643f77ce853151adacde3effac1c3a7ea9cd78275f·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·57c6860ae0fb2135926e192d7cd8a79198390797738b1e4aa726837ae771c9d5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·340e3eb0b64d281e8f72c146b36009e1962b563e3f2adb35d4710c95c69558c5·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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:·1b60ed8633a5b2c9aff163753df3ff89c3f5df42b3cbb32c8a406a6708dd889d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../../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:·e70d4dc4e3f7ac709a07e0549c6d7b029331ef0539da314f6140d129568da979·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../../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="https://doc.rust-lang.org/1.83.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·fewer
56 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:·89de330c34bfeb580e1160ac2fac45b20e67820b1aa125b191163da613a344d8·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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,·but58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../../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:·56daea4cc7ccbb2ce072606b9e5ef2554ef36343a5a5b8256353c0b4bf7d6381·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
62 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·ca3268fffbd5c20484370c176d787bc48e419afd27a1f1726d7c24fdc256d27c·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····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>·over64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·fa6bd5f11a0e1595d983cfde9bfd9d561de4ac9064d7ec0f483c65fd304ee1cc·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../../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:·e3611e04e61210967d37bc1b3673a45beafd80d43156b2866b411ff452543ef4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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:·cdc4086227a45cdf20415888b4a422429811097f7e19b76b610a62be1606fe0f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../../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:·621da49f5ed1d3dff64bb9963490d8670bca1a9fff0e29d4ff6a1468a2e3a275·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·584,·SHA:·be31ec7d8c7d88db5fcbb99de26f74fc16a0607aecd67207a774eeb7f8af3601·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,73 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·eaf4450b9f8a7337bb44fa3780be6be1a534d5698c5e63ec08157bfa526d4815·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
75 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·db44a33b9fc2bf82866835fd99ac7add1a734a08f78c29b2fa0d89f461b2ef9f·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
78 ····T:·'a,78 ····T:·'a,
79 ····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;,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
80 ····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,80 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
82 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:·488a0ec92031a58d1056448a68884d4b1c09ab22443fc44e5836816c739744de·...·]/core/primitive.bool.html">bool</a><div·class="where">where82 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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,84 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
85 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:·af9569aebf9628b48b2a750938a3356a08a6524f1019570c83987a9a531e48c8·...·]/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 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.83.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:·e3d897d44df3dae7ac7124bbc28956b2162c6cb742072d9f945cc178f70aeae6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·the88 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
89 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:·a4bcdbebc7e4e9619700a5b1fa161feb13a57ad404c7a7d5e4895a9974c4bde7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where89 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·55da9d2eafc5b29aede623a11a0bd0fd119d24fed5bbdee7540356cdb8aeefc9·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::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·reducing91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../../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:·a0c97f5a4f751f824fd33d62441d69720342a0060d37c8e1860b14565c61a730·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(92 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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,94 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../../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">where95 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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·the98 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·5a39792f6dafa5bc8e57c5d05ba618a6e100058b40625407b0f6f35dce0d534d·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·850,·SHA:·e818ae7cba194f2dce7ab0cc149585f83507b553c53bd4e60f9fea406dc28ea8·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·980,·SHA:·d5c506c6efb1a71e78f727b4513f0063a80b38bb5b5e2040b467b551b213c3a8·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d7e2ec14bc6b66751a1df292d9b8443ce6031985d516fa98e50700747b244558·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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·returns107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../../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:·18c33d131ada62a5c1f9a82279c7c387da2402aabcffe8b9a06eb891b240f193·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../../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">where111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
114 ····&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·returns114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../../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:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where115 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·997,·SHA:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where117 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
118 ····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>,118 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
119 ····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·its119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
120 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·[·...·truncated·by·diffoscope;·len:·521,·SHA:·9f69f636dd5a89c9cd11349630161a830650338e98f993bdff7a4ef6789f840e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,121 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
122 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····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·the123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
124 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:·6a797ea101d713e02f838a375b3db91ba64471068541294879cd13c1814a0918·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····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·the126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
Max diff block lines reached; 79765/305010 bytes (26.15%) 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#542-600">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#556-559">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#542-600">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#556-559">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#573-575">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>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#573-575">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.83.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>
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#597-599">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#597-599">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="../../../core/primitive.usize.html">usize</a>,25 ····capacity:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
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>26 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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>
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#602-2729">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#614-616">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#602-2729">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#614-616">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#628-630">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>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#628-630">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.83.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>
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#681-688">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>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#681-688">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.83.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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:·525e5c4837cad2717d226714fc7a332b8cadf9fd1630355276e4954569f8b622·...·]/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#711-718">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>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#711-718">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.83.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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:·525e5c4837cad2717d226714fc7a332b8cadf9fd1630355276e4954569f8b622·...·]/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#744-750">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>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#744-750">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.83.0/core/primitive.usize.html">usize</a>,·j:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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#765-767">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·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#765-767">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.83.0/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#792-802">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·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#792-802">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.83.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·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#821-833">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·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#821-833">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.83.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·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#873-885">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#873-885">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="../../../core/primitive.usize.html">usize</a>,108 ····additional:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
109 )·-&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·to109 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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#921-933">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·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#921-933">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.83.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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:·525e5c4837cad2717d226714fc7a332b8cadf9fd1630355276e4954569f8b622·...·]/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; 298591/331943 bytes (89.95%) of diff not shown.
214 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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-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></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-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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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-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></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-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="../../../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·former7 <p><code>CString</code>·is·to·<code>&amp;<a·href="https://doc.rust-lang.org/1.83.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:·0233ee9d1cde57e8381ed5bd174797337e14bd73b41412498b6e7b2a5618291d·...·]/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="../../../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>·(for12 or·anything·that·implements·<code><a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../core/primitive.str.html"·title="str">str</a></code>,·since·both·implement·that·trait).14 a·<code>&amp;<a·href="https://doc.rust-lang.org/1.83.0/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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>20 <p><code>CString</code>·implements·an·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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="https://doc.rust-lang.org/1.83.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·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="../../../core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>·slice·from·a27 <p>Alternatively,·you·can·obtain·a·<code>&amp;[<a·href="https://doc.rust-lang.org/1.83.0/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="../../../core/primitive.slice.html#method.len"·title="method·slice::len"><code>len</code></a>·method.</p>33 <a·href="https://doc.rust-lang.org/1.83.0/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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="https://doc.rust-lang.org/1.83.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·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="../../../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::c_str::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="https://doc.rust-lang.org/1.83.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:·4b32ec1d2cb2b6da446db5d84155901b418581ba53c192fd2e54bc7dd746fa80·...·]/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::c_str::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::c_str::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::c_str::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="../../../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="https://doc.rust-lang.org/1.83.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,
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="../../../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·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="https://doc.rust-lang.org/1.83.0/core/primitive.pointer.html">*mut·</a><a·class="type"·href="https://doc.rust-lang.org/1.83.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·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="../../../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="https://doc.rust-lang.org/1.83.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·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="../../../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>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.83.0/core/primitive.pointer.html">*mut·</a><a·class="type"·href="https://doc.rust-lang.org/1.83.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>
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; 185760/219044 bytes (84.80%) 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::c_str::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>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::c_str::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.83.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.83.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>
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="../../../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="https://doc.rust-lang.org/1.83.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>
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="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.FromVecWithNulError.html"·title="struct·alloc::ffi::c_str::FromVecWithNulError">FromVecWithNulError</a></h3></section></summary><div·class="[·...·truncated·by·diffoscope;·len:·10547,·SHA:·2bc2d9c819b78a7aa89cc644f440a9f6a531605850f062a229934349619f3240·...·]/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="https://doc.rust-lang.org/1.83.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::c_str::FromVecWithNulError">FromVecWithNulError</a></h3></sectio[·...·truncated·by·diffoscope;·len:·11291,·SHA:·52c4b00063f1696e8114f0ee34723323c741fefd4ebe254e175f5ba17e687500·...·]/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="../../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.FromVecWithNulError.html"·title="struct·alloc::ffi::c_str::FromVecWithNulError">FromVecWithNulError</a></h3></section><section·id="impl-StructuralPartial[·...·truncated·by·diffoscope;·len:·3897,·SHA:·fd54cec8b9e966278cb7aef32ffc376db22264dd5ed459aeba0c044656b7a545·...·]/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="https://doc.rust-lang.org/1.83.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::c_str::FromVecWithNulError">FromVecWithNulError</a></h3></section><section·id[·...·truncated·by·diffoscope;·len:·4137,·SHA:·11fdd8631bab5e9a25b136ed0d4f0d38fee20d42b7e24f7337ad3aadcd76d14e·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where32 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</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·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·48923b2de6bcb5689f23d03d435445eb4051a378bddec4b7f5955358ab377c4e·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·6dddcd23cf7bd50ffe1d6d24130ae68bd99683dd24f390b367def62c0b5604d8·...·]/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#2672-2686">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="../../../core/marker/trait.Sized.html"·title="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:·159b4752d7269f8a67d91eeb3d323daa68180c8d895e0786157efcabbe8bfa96·...·]/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="https://doc.rust-lang.org/1.83.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:·88a7a0c9b7c6386b2fb76f817d083eedcf15d69d318f12ab100c3dafb5b6cc71·...·]/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="../../../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:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../../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:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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#993-1008">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::c_str::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#998-1000">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#993-1008">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::c_str::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#998-1000">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#1005-1007">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#1005-1007">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="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.IntoStringError.html"·title="struct·alloc::ffi::c_str::IntoStringError">IntoStringError</a></h3></section></summary><div·class="impl-items">[·...·truncated·by·diffoscope;·len:·10265,·SHA:·4ab31b9baae96ec3f5dfa305f8f33d135d12326e45da982bc72498a23f1f754f·...·]/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="https://doc.rust-lang.org/1.83.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::c_str::IntoStringError">IntoStringError</a></h3></section></summary>[·...·truncated·by·diffoscope;·len:·10961,·SHA:·f8f6947c91370f0f58c9e4c85af792081f32e55883ad0fc0312d0626a0f55827·...·]/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="../../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.IntoStringError.html"·title="struct·alloc::ffi::c_str::IntoStringError">IntoStringError</a></h3></section><section·id="impl-StructuralPartialEq-for-IntoS[·...·truncated·by·diffoscope;·len:·3745,·SHA:·06e3cf3768b9efb3d9daca0cf312d7d69bb74252097be0ef01ccb3d4e6a5cf64·...·]/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="https://doc.rust-lang.org/1.83.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::c_str::IntoStringError">IntoStringError</a></h3></section><section·id="impl-Struc[·...·truncated·by·diffoscope;·len:·3985,·SHA:·aa66bde66919f2e3e9bee9eae865f021723b60b1934eb990de77065eecd8ea3d·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where14 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/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·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../../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:·48923b2de6bcb5689f23d03d435445eb4051a378bddec4b7f5955358ab377c4e·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·6dddcd23cf7bd50ffe1d6d24130ae68bd99683dd24f390b367def62c0b5604d8·...·]/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#2672-2686">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="../../../core/marker/trait.Sized.html"·title="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:·159b4752d7269f8a67d91eeb3d323daa68180c8d895e0786157efcabbe8bfa96·...·]/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="https://doc.rust-lang.org/1.83.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:·88a7a0c9b7c6386b2fb76f817d083eedcf15d69d318f12ab100c3dafb5b6cc71·...·]/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.2 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#933-970">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::c_str::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#950-952">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·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#933-970">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::c_str::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#950-952">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.83.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·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#967-969">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·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#967-969">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.83.0/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="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.NulError.html"·title="struct·alloc::ffi::c_str::NulError">NulError</a></h3></section></summary><div·class="impl-items"><details·class="toggl[·...·truncated·by·diffoscope;·len:·10144,·SHA:·e9b8bca118d0b25cfd1456f3d866b180f347538a2a3601e7cc01c65bea95bc84·...·]/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="https://doc.rust-lang.org/1.83.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::c_str::NulError">NulError</a></h3></section></summary><div·class="impl-item[·...·truncated·by·diffoscope;·len:·10864,·SHA:·40b39129e4c577eaa9fc19bdd43a08127c442520b1ee9ee00bd1df6c4698b3f0·...·]/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="../../../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.NulError.html"·title="struct·alloc::ffi::c_str::NulError">NulError</a></h3></section><section·id="impl-StructuralPartialEq-for-NulError"·class="impl"><sp[·...·truncated·by·diffoscope;·len:·3479,·SHA:·24c014a661f617f333e2351775687b40350cd8660aeab25af774d6edae329ad9·...·]/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="https://doc.rust-lang.org/1.83.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::c_str::NulError">NulError</a></h3></section><section·id="impl-StructuralPartialEq-for-Nu[·...·truncated·by·diffoscope;·len:·3719,·SHA:·368f5c58fee68150c9a58d06c0f53b161b7d46376b4d73e28c7ebcbc293d05e8·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where27 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/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·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../../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:·48923b2de6bcb5689f23d03d435445eb4051a378bddec4b7f5955358ab377c4e·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·6dddcd23cf7bd50ffe1d6d24130ae68bd99683dd24f390b367def62c0b5604d8·...·]/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#2672-2686">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="../../../core/marker/trait.Sized.html"·title="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:·159b4752d7269f8a67d91eeb3d323daa68180c8d895e0786157efcabbe8bfa96·...·]/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="https://doc.rust-lang.org/1.83.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:·88a7a0c9b7c6386b2fb76f817d083eedcf15d69d318f12ab100c3dafb5b6cc71·...·]/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="../../../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:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../../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:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.56 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="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>·primitive.·Both·are9 borrowed·slices·of·strings·with·the·<a·href="https://doc.rust-lang.org/1.83.0/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="../../core/primitive.char.html"·title="primitive·char"><code>char</code></a>·represents·a·‘[Unicode·scalar30 each.·The·Rust·type·<a·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/core/primitive.u8.html"·title="primitive·u8">u8</a></code>·that·you·got·from
75 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·array75 a·C·function.·A·<a·href="https://doc.rust-lang.org/1.83.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·array
76 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·Rust76 of·bytes.·Once·you·have·a·<a·href="https://doc.rust-lang.org/1.83.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·Rust
77 <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·adding77 <code>&amp;<a·href="https://doc.rust-lang.org/1.83.0/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="reexports"·class="section-header">Re-exports<a·href="#reexports"·class="anchor">§</a></h2><ul·class="item-table"><li><div·class="item-name"·id="reexport.FromVecWithNulError"><code>pub·use·self::c_str::<a·class="struct"·href="c_str/struct.FromVecWithNulError.html"·title="struct·alloc::ffi::c_str::FromVecWithNulError">FromVecWithNulError</a>;</code></div></li><li><div·class="item-name"·id="reexport.IntoStringError"><code>pub·use·self::c_str::<a·class="struct"·href="c_str/struct.IntoStringError.html"·title="struct·alloc::ffi::c_str::IntoStringError">IntoStringError</a>;</code></div></li><li><div·class="item-name"·id="reexport.NulError"><code>pub·use·self::c_str::<a·class="struct"·href="c_str/struct.NulError.html"·title="struct·alloc::ffi::c_str::NulError">NulError</a>;</code></div></li></ul><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="reexports"·class="section-header">Re-exports<a·href="#reexports"·class="anchor">§</a></h2><ul·class="item-table"><li><div·class="item-name"·id="reexport.FromVecWithNulError"><code>pub·use·self::c_str::<a·class="struct"·href="c_str/struct.FromVecWithNulError.html"·title="struct·alloc::ffi::c_str::FromVecWithNulError">FromVecWithNulError</a>;</code></div></li><li><div·class="item-name"·id="reexport.IntoStringError"><code>pub·use·self::c_str::<a·class="struct"·href="c_str/struct.IntoStringError.html"·title="struct·alloc::ffi::c_str::IntoStringError">IntoStringError</a>;</code></div></li><li><div·class="item-name"·id="reexport.NulError"><code>pub·use·self::c_str::<a·class="struct"·href="c_str/struct.NulError.html"·title="struct·alloc::ffi::c_str::NulError">NulError</a>;</code></div></li></ul><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></ul></section></div></main></body></html>82 middle.</div></li></ul></section></div></main></body></html>
212 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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-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></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-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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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-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></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-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="../../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·former7 <p><code>CString</code>·is·to·<code>&amp;<a·href="https://doc.rust-lang.org/1.83.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:·cbf69a4b6bc7bdcfc29ad3b84606d5949b383bdc38074921084f9b9de28157a5·...·]/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="../../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>·(for12 or·anything·that·implements·<code><a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/primitive.str.html"·title="str">str</a></code>,·since·both·implement·that·trait).14 a·<code>&amp;<a·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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>20 <p><code>CString</code>·implements·an·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·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="../../core/primitive.u8.html"·title="primitive·u8">u8</a>]</code>·slice·from·a27 <p>Alternatively,·you·can·obtain·a·<code>&amp;[<a·href="https://doc.rust-lang.org/1.83.0/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="../../core/primitive.slice.html#method.len"·title="method·slice::len"><code>len</code></a>·method.</p>33 <a·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·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="../../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="c_str/struct.NulError.html"·title="struct·alloc::ffi::c_str::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="https://doc.rust-lang.org/1.83.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.83[·...·truncated·by·diffoscope;·len:·112,·SHA:·fd74056ee6e2a5a5df95309e27cef8b5519433f68cdb8bed6064b60e7160b7e6·...·]/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="c_str/struct.NulError.html"·title="struct·alloc::ffi::c_str::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="c_str/struct.NulError.html"·title="struct·alloc::ffi::c_str::NulError"><code>NulError</code></a>·returned·will·contain·the·bytes·as·well·as82 internal·0·byte.·The·<a·href="c_str/struct.NulError.html"·title="struct·alloc::ffi::c_str::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="../../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="https://doc.rust-lang.org/1.83.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,
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="../../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·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="https://doc.rust-lang.org/1.83.0/core/primitive.pointer.html">*mut·</a><a·class="type"·href="https://doc.rust-lang.org/1.83.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·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="../../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="https://doc.rust-lang.org/1.83.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·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="../../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>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.83.0/core/primitive.pointer.html">*mut·</a><a·class="type"·href="https://doc.rust-lang.org/1.83.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>
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; 183918/216760 bytes (84.85%) of diff not shown.
7.17 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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#647">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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.83.0/src/core/fmt/mod.rs.html#647">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>
61.0 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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·{1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.0/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="../../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:·cd29c1dc20453af4a16a610078181e5a497c2a047e65a499d91a033ed8b20345·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/trait.Clone.html"·title="[·...·truncated·by·diffoscope;·len:·5313,·SHA:·e3aaa98a34997895ae2e82483204750b0136b2aa600e9fa6097cfbe2dca9b302·...·]/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="../../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:·f8ff09d332d0c077da807b7a3e23fc30c54016dd82496ec9b01452440f2ad0a3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/marker/trait.Copy.html"·title="t[·...·truncated·by·diffoscope;·len:·4428,·SHA:·1414b1e20521d1b44adb1154644bb8e0416fe30addcb09447a5feab595801276·...·]/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·[·...·truncated·by·diffoscope;·len:·672,·SHA:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·177b78315f049c4065999398ed2f89f85b6487d450f04912cef3a3be057e45e9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where13 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·604f234273b763a6bed19dbd345c594cd2aa8776b239765ce764b1e7c24bf9c9·...·]/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[·...·truncated·by·diffoscope;·len:·1551,·SHA:·a703c408c4e022a9f5f607159372ac6d607aaf923b3e1387c117f9b36f5022ac·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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=[·...·truncated·by·diffoscope;·len:·156,·SHA:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../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:·0f36698ef1f8522439780e4de3b8f612c0a7a09c8f896d4b7a61bbeffa463db0·...·]/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="https://doc.rust-lang.org/1.83.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:·e25370032e85c931ad62255b1432a49de1bcc5c915b5198766f5b1f371bb8599·...·]/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·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.41 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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#632-643">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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#632-643">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="../../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="https://doc.rust-lang.org/1.83.0/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>
10.1 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.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">where
2 ····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·function2 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·d72924d639e3a8690ad0dc7483ddca679b3a4a1badc6eab4d7361a4497dfa027·...·]/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>);
11.1 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#1168">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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.0/src/core/fmt/mod.rs.html#1168">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:·579834ade2524906690d3baffac50dbed25328de46bccb19f6e731da4ef6e019·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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 83, 17 lines modifiedOffset 83, 17 lines modified
83 <span·class="macro">println!</span>(<span·class="string">"Hello·{:width$}!"</span>,·<span·class="string">"x"</span>,·width·=·<span·class="number">5</span>);83 <span·class="macro">println!</span>(<span·class="string">"Hello·{:width$}!"</span>,·<span·class="string">"x"</span>,·width·=·<span·class="number">5</span>);
84 <span·class="kw">let·</span>width·=·<span·class="number">5</span>;84 <span·class="kw">let·</span>width·=·<span·class="number">5</span>;
85 <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>85 <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>
86 <p>This·is·a·parameter·for·the·“minimum·width”·that·the·format·should·take·up.86 <p>This·is·a·parameter·for·the·“minimum·width”·that·the·format·should·take·up.
87 If·the·value’s·string·does·not·fill·up·this·many·characters,·then·the87 If·the·value’s·string·does·not·fill·up·this·many·characters,·then·the
88 padding·specified·by·fill/alignment·will·be·used·to·take·up·the·required88 padding·specified·by·fill/alignment·will·be·used·to·take·up·the·required
89 space·(see·below).</p>89 space·(see·below).</p>
90 <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·of90 <p>The·value·for·the·width·can·also·be·provided·as·a·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html"·title="primitive·usize"><code>usize</code></a>·in·the·list·of
91 parameters·by·adding·a·postfix·<code>$</code>,·indicating·that·the·second·argument·is91 parameters·by·adding·a·postfix·<code>$</code>,·indicating·that·the·second·argument·is
92 a·<a·href="../../core/primitive.usize.html"·title="primitive·usize"><code>usize</code></a>·specifying·the·width.</p>92 a·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html"·title="primitive·usize"><code>usize</code></a>·specifying·the·width.</p>
93 <p>Referring·to·an·argument·with·the·dollar·syntax·does·not·affect·the·“next93 <p>Referring·to·an·argument·with·the·dollar·syntax·does·not·affect·the·“next
94 argument”·counter,·so·it’s·usually·a·good·idea·to·refer·to·arguments·by94 argument”·counter,·so·it’s·usually·a·good·idea·to·refer·to·arguments·by
95 position,·or·use·named·arguments.</p>95 position,·or·use·named·arguments.</p>
96 <h3·id="fillalignment"><a·class="doc-anchor"·href="#fillalignment">§</a>Fill/Alignment</h3>96 <h3·id="fillalignment"><a·class="doc-anchor"·href="#fillalignment">§</a>Fill/Alignment</h3>
97 <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>);97 <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>);
98 <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>);98 <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>);
99 <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>);99 <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 270, 24 lines modifiedOffset 270, 24 lines modified
270 precision·:=·count·|·&#39;*&#39;270 precision·:=·count·|·&#39;*&#39;
271 type·:=·&#39;&#39;·|·&#39;?&#39;·|·&#39;x?&#39;·|·&#39;X?&#39;·|·identifier271 type·:=·&#39;&#39;·|·&#39;?&#39;·|·&#39;x?&#39;·|·&#39;X?&#39;·|·identifier
272 count·:=·parameter·|·integer272 count·:=·parameter·|·integer
273 parameter·:=·argument·&#39;$&#39;</code></pre></div>273 parameter·:=·argument·&#39;$&#39;</code></pre></div>
274 <p>In·the·above·grammar,</p>274 <p>In·the·above·grammar,</p>
275 <ul>275 <ul>
276 <li><code>text</code>·must·not·contain·any·<code>'{'</code>·or·<code>'}'</code>·characters,</li>276 <li><code>text</code>·must·not·contain·any·<code>'{'</code>·or·<code>'}'</code>·characters,</li>
277 <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·semantic277 <li><code>ws</code>·is·any·character·for·which·<a·href="https://doc.rust-lang.org/1.83.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·semantic
278 meaning·and·is·completely·optional,</li>278 meaning·and·is·completely·optional,</li>
279 <li><code>integer</code>·is·a·decimal·integer·that·may·contain·leading·zeroes·and·must·fit·into·an·<code>usize</code>·and</li>279 <li><code>integer</code>·is·a·decimal·integer·that·may·contain·leading·zeroes·and·must·fit·into·an·<code>usize</code>·and</li>
280 <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>280 <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>
281 </ul>281 </ul>
282 <h2·id="formatting-traits"><a·class="doc-anchor"·href="#formatting-traits">§</a>Formatting·traits</h2>282 <h2·id="formatting-traits"><a·class="doc-anchor"·href="#formatting-traits">§</a>Formatting·traits</h2>
283 <p>When·requesting·that·an·argument·be·formatted·with·a·particular·type,·you283 <p>When·requesting·that·an·argument·be·formatted·with·a·particular·type,·you
284 are·actually·requesting·that·an·argument·ascribes·to·a·particular·trait.284 are·actually·requesting·that·an·argument·ascribes·to·a·particular·trait.
285 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>·as285 This·allows·multiple·actual·types·to·be·formatted·via·<code>{:x}</code>·(like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.i8.html"·title="primitive·i8"><code>i8</code></a>·as
286 well·as·<a·href="../../core/primitive.isize.html"·title="primitive·isize"><code>isize</code></a>).·The·current·mapping·of·types·to·traits·is:</p>286 well·as·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.isize.html"·title="primitive·isize"><code>isize</code></a>).·The·current·mapping·of·types·to·traits·is:</p>
287 <ul>287 <ul>
288 <li><em>nothing</em>··<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>Display</code></a></li>288 <li><em>nothing</em>··<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>Display</code></a></li>
289 <li><code>?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a></li>289 <li><code>?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a></li>
290 <li><code>x?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·with·lower-case·hexadecimal·integers</li>290 <li><code>x?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·with·lower-case·hexadecimal·integers</li>
291 <li><code>X?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·with·upper-case·hexadecimal·integers</li>291 <li><code>X?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·with·upper-case·hexadecimal·integers</li>
292 <li><code>o</code>··<a·href="trait.Octal.html"·title="trait·alloc::fmt::Octal"><code>Octal</code></a></li>292 <li><code>o</code>··<a·href="trait.Octal.html"·title="trait·alloc::fmt::Octal"><code>Octal</code></a></li>
293 <li><code>x</code>··<a·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex"><code>LowerHex</code></a></li>293 <li><code>x</code>··<a·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex"><code>LowerHex</code></a></li>
Offset 309, 17 lines modifiedOffset 309, 17 lines modified
309 <p>Your·type·will·be·passed·as·<code>self</code>·by-reference,·and·then·the·function309 <p>Your·type·will·be·passed·as·<code>self</code>·by-reference,·and·then·the·function
310 should·emit·output·into·the·Formatter·<code>f</code>·which·implements·<code>fmt::Write</code>.·It·is·up·to·each310 should·emit·output·into·the·Formatter·<code>f</code>·which·implements·<code>fmt::Write</code>.·It·is·up·to·each
311 format·trait·implementation·to·correctly·adhere·to·the·requested·formatting·parameters.311 format·trait·implementation·to·correctly·adhere·to·the·requested·formatting·parameters.
312 The·values·of·these·parameters·can·be·accessed·with·methods·of·the312 The·values·of·these·parameters·can·be·accessed·with·methods·of·the
313 <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·also313 <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
314 provides·some·helper·methods.</p>314 provides·some·helper·methods.</p>
315 <p>Additionally,·the·return·value·of·this·function·is·<a·href="type.Result.html"·title="fmt::Result"><code>fmt::Result</code></a>·which·is·a315 <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
316 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·implementations316 type·alias·of·<code><a·href="https://doc.rust-lang.org/1.83.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·implementations
317 should·ensure·that·they·propagate·errors·from·the·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·(e.g.,·when317 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
318 calling·<a·href="../../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>).·However,·they·should·never·return·errors·spuriously.·That318 calling·<a·href="https://doc.rust-lang.org/1.83.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>).·However,·they·should·never·return·errors·spuriously.·That
319 is,·a·formatting·implementation·must·and·may·only·return·an·error·if·the319 is,·a·formatting·implementation·must·and·may·only·return·an·error·if·the
320 passed-in·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·returns·an·error.·This·is·because,·contrary·to·what320 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
321 the·function·signature·might·suggest,·string·formatting·is·an·infallible321 the·function·signature·might·suggest,·string·formatting·is·an·infallible
322 operation.·This·function·only·returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the322 operation.·This·function·only·returns·a·<a·href="type.Result.html"·title="type·alloc::fmt::Result"><code>Result</code></a>·because·writing·to·the
323 underlying·stream·might·fail·and·it·must·provide·a·way·to·propagate·the·fact323 underlying·stream·might·fail·and·it·must·provide·a·way·to·propagate·the·fact
324 that·an·error·has·occurred·back·up·the·stack.</p>324 that·an·error·has·occurred·back·up·the·stack.</p>
325 <p>An·example·of·implementing·the·formatting·traits·would·look325 <p>An·example·of·implementing·the·formatting·traits·would·look
Offset 391, 25 lines modifiedOffset 391, 25 lines modified
391 </span><span·class="macro">writeln!</span>·····<span·class="comment">//·same·as·write·but·appends·a·newline391 </span><span·class="macro">writeln!</span>·····<span·class="comment">//·same·as·write·but·appends·a·newline
392 </span><span·class="macro">print!</span>·······<span·class="comment">//·the·format·string·is·printed·to·the·standard·output392 </span><span·class="macro">print!</span>·······<span·class="comment">//·the·format·string·is·printed·to·the·standard·output
393 </span><span·class="macro">println!</span>·····<span·class="comment">//·same·as·print·but·appends·a·newline393 </span><span·class="macro">println!</span>·····<span·class="comment">//·same·as·print·but·appends·a·newline
394 </span><span·class="macro">eprint!</span>······<span·class="comment">//·the·format·string·is·printed·to·the·standard·error394 </span><span·class="macro">eprint!</span>······<span·class="comment">//·the·format·string·is·printed·to·the·standard·error
395 </span><span·class="macro">eprintln!</span>····<span·class="comment">//·same·as·eprint·but·appends·a·newline395 </span><span·class="macro">eprintln!</span>····<span·class="comment">//·same·as·eprint·but·appends·a·newline
396 </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>396 </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>
397 <h4·id="write"><a·class="doc-anchor"·href="#write">§</a><code>write!</code></h4>397 <h4·id="write"><a·class="doc-anchor"·href="#write">§</a><code>write!</code></h4>
398 <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·string398 <p><a·href="https://doc.rust-lang.org/1.83.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·and·<a·href="https://doc.rust-lang.org/1.83.0/core/macro.writeln.html"·title="macro·core::writeln"><code>writeln!</code></a>·are·two·macros·which·are·used·to·emit·the·format·string
399 to·a·specified·stream.·This·is·used·to·prevent·intermediate·allocations·of399 to·a·specified·stream.·This·is·used·to·prevent·intermediate·allocations·of
400 format·strings·and·instead·directly·write·the·output.·Under·the·hood,·this400 format·strings·and·instead·directly·write·the·output.·Under·the·hood,·this
401 function·is·actually·invoking·the·<a·href="../../std/io/trait.Write.html#method.write_fmt"><code>write_fmt</code></a>·function·defined·on·the401 function·is·actually·invoking·the·<a·href="../../std/io/trait.Write.html#method.write_fmt"><code>write_fmt</code></a>·function·defined·on·the
402 <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>402 <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>
  
403 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::io::Write;403 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::io::Write;
404 <span·class="kw">let·</span><span·class="kw-2">mut·</span>w·=·Vec::new();404 <span·class="kw">let·</span><span·class="kw-2">mut·</span>w·=·Vec::new();
405 <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>405 <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>
406 <h4·id="print"><a·class="doc-anchor"·href="#print">§</a><code>print!</code></h4>406 <h4·id="print"><a·class="doc-anchor"·href="#print">§</a><code>print!</code></h4>
407 <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>407 <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.83.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>
408 macro,·the·goal·of·these·macros·is·to·avoid·intermediate·allocations·when408 macro,·the·goal·of·these·macros·is·to·avoid·intermediate·allocations·when
409 printing·output.·Example·usage·is:</p>409 printing·output.·Example·usage·is:</p>
  
410 <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>);410 <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>);
411 <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>411 <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>
412 <h4·id="eprint"><a·class="doc-anchor"·href="#eprint">§</a><code>eprint!</code></h4>412 <h4·id="eprint"><a·class="doc-anchor"·href="#eprint">§</a><code>eprint!</code></h4>
413 <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·to413 <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.6 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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.83.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·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="../../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="https://doc.rust-lang.org/1.83.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.
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="../../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="https://doc.rust-lang.org/1.83.0/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="../../src/core/fmt/mod.rs.html#394">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:·701,·SHA:·4be84bb421d81b58f07127f153ed2116a3ae36d34d021a66d19d1678340aea25·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/fmt/mod.rs.html#394">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:·809,·SHA:·214e624cc0f8a8cdc3bd31e094d9603760403344ebd0341da2a63c408cfcdcd2·...·]/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="../../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:·291dbeaa050e30e443e2ceaac96e6382c0b0a27e866a779087b278b6ff4f525b·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/trait.[·...·truncated·by·diffoscope;·len:·9270,·SHA:·cc3188fe2c6b49419ea584836149ed40a6d66bcb5fcef84fc0de85ab3138fb12·...·]/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·[·...·truncated·by·diffoscope;·len:·672,·SHA:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·177b78315f049c4065999398ed2f89f85b6487d450f04912cef3a3be057e45e9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where49 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·604f234273b763a6bed19dbd345c594cd2aa8776b239765ce764b1e7c24bf9c9·...·]/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[·...·truncated·by·diffoscope;·len:·1551,·SHA:·a703c408c4e022a9f5f607159372ac6d607aaf923b3e1387c117f9b36f5022ac·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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=[·...·truncated·by·diffoscope;·len:·156,·SHA:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../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:·c2c8c9a4a4178ce9f649b57ef777997f02105c416fe8b6a7efafe289a2c82f94·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·3bbde9fc45defa1dca05b2d321fdaad6904f701633b311a788797b29fc3d0d8c·...·]/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#2672-2686">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="../../core/marker/trait.Sized.html"·title="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:·b3522f6656a75b8786d727c522d67358e29dfa2964a2f89c2aa386e5cf9583ce·...·]/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="https://doc.rust-lang.org/1.83.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:·4e66fd818d0db79470c3c05df8933adf2420d3b968fd4ca310e2824aa93e7fa4·...·]/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="../../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:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../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:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.7 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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.83.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">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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../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="https://doc.rust-lang.org/1.83.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">where
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>41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18207277e1ad496c1681c62dbd34d2dcf3b98d63b4f0759562156a12bb2d5ea1·...·]/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../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·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="https://doc.rust-lang.org/1.83.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:·a13ea3d614b2c61d45d213b9bcfa73dd2e996e237f358b130969c3adb736f8f0·...·]/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="../../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>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.83.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.83.0/core/result/enum.[·...·truncated·by·diffoscope;·len:·120,·SHA:·2422d69e1d4e6e8aba1f66aea6e2265b9a1f2e1561c6df9a48e71873b4203282·...·]/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="../../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:·3947e237e9d878b3383a15064e5869763fcd7a62fc6f133a93a05a5cb21164f3·...·]/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="https://doc.rust-lang.org/1.83.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:·f96175c8d832a8e67df64a073a39ab98a8c12574afbe7c1ea6df360fdac5904e·...·]/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="../../core/marker/trait.Sized.html"·title="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:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·b8ab8ac1cc2cc1dfc3bc940ed349e05673824a92857cb43c3be63178bec2b910·...·]/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="https://doc.rust-lang.org/1.83.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:·26e459c77cb9bf051c3ac640d0b2b3ec4b272937eed48d93c8732b2ebd34408b·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../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:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.8 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.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">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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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="https://doc.rust-lang.org/1.83.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>(
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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../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="https://doc.rust-lang.org/1.83.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">where
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>68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18207277e1ad496c1681c62dbd34d2dcf3b98d63b4f0759562156a12bb2d5ea1·...·]/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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../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="https://doc.rust-lang.org/1.83.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">where
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>96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18207277e1ad496c1681c62dbd34d2dcf3b98d63b4f0759562156a12bb2d5ea1·...·]/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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>102 ····I:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
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="../../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·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="https://doc.rust-lang.org/1.83.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:·be33b6b38a39cb039ea90bccc9fbf8f442ef3aab8219741e7b09d05ac580b491·...·]/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="../../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>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.83.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.83.0/core/result/enum[·...·truncated·by·diffoscope;·len:·121,·SHA:·9951f4fad072a2bd4afd36769d36f7e31db1ea00adc8aa4fddcf0cc89b0a270d·...·]/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="../../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:·36a7a051436b888363cd7de4c2b8c12e6e24fe5b199edb5f6a004b50f3ae827f·...·]/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="https://doc.rust-lang.org/1.83.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:·6f5257eaafb0c7899c86b4f59a84114b920c177f4d98cb0181cfdbb27356b5d5·...·]/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="../../core/marker/trait.Sized.html"·title="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:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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/68288 bytes (14.26%) of diff not shown.
56.6 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.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">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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../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="https://doc.rust-lang.org/1.83.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">where
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>41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18207277e1ad496c1681c62dbd34d2dcf3b98d63b4f0759562156a12bb2d5ea1·...·]/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../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·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="https://doc.rust-lang.org/1.83.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:·a13ea3d614b2c61d45d213b9bcfa73dd2e996e237f358b130969c3adb736f8f0·...·]/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="../../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>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.83.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.83.0/core/result/enum.[·...·truncated·by·diffoscope;·len:·120,·SHA:·2422d69e1d4e6e8aba1f66aea6e2265b9a1f2e1561c6df9a48e71873b4203282·...·]/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="../../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:·1e362dc432644d21a15327a917f9a40853567dc541b4ec93613bf1f18e65c253·...·]/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="https://doc.rust-lang.org/1.83.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:·cc66abee95a4571a06c3f2f6646415a40c10e48c18570fe7d82b14f4a50832f0·...·]/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="../../core/marker/trait.Sized.html"·title="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:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·b8ab8ac1cc2cc1dfc3bc940ed349e05673824a92857cb43c3be63178bec2b910·...·]/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="https://doc.rust-lang.org/1.83.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:·26e459c77cb9bf051c3ac640d0b2b3ec4b272937eed48d93c8732b2ebd34408b·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../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:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.2 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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.83.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">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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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="https://doc.rust-lang.org/1.83.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>(
28 ····&amp;mut·self,28 ····&amp;mut·self,
29 ····name:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>,29 ····name:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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;(
56 ····&amp;mut·self,56 ····&amp;mut·self,
57 ····name:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>,57 ····name:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../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>60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18207277e1ad496c1681c62dbd34d2dcf3b98d63b4f0759562156a12bb2d5ea1·...·]/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="../../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·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="https://doc.rust-lang.org/1.83.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:·a13ea3d614b2c61d45d213b9bcfa73dd2e996e237f358b130969c3adb736f8f0·...·]/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="../../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>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.83.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.83.0/core/result/enum.[·...·truncated·by·diffoscope;·len:·120,·SHA:·2422d69e1d4e6e8aba1f66aea6e2265b9a1f2e1561c6df9a48e71873b4203282·...·]/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="../../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:·2ab1ecea76a28e002ca2f8006d2145fe7c7600362345084ad91f3b4acfd7e6a3·...·]/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="https://doc.rust-lang.org/1.83.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:·45fc38f38393c63f7b8b3e3f9d74fa4935fad3fe1a0118d66c8b70d859912161·...·]/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="../../core/marker/trait.Sized.html"·title="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:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·b8ab8ac1cc2cc1dfc3bc940ed349e05673824a92857cb43c3be63178bec2b910·...·]/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="https://doc.rust-lang.org/1.83.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:·26e459c77cb9bf051c3ac640d0b2b3ec4b272937eed48d93c8732b2ebd34408b·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../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:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.2 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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.83.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">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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../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="https://doc.rust-lang.org/1.83.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">where
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>44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18207277e1ad496c1681c62dbd34d2dcf3b98d63b4f0759562156a12bb2d5ea1·...·]/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="../../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·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="https://doc.rust-lang.org/1.83.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:·a13ea3d614b2c61d45d213b9bcfa73dd2e996e237f358b130969c3adb736f8f0·...·]/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="../../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>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.83.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.83.0/core/result/enum.[·...·truncated·by·diffoscope;·len:·120,·SHA:·2422d69e1d4e6e8aba1f66aea6e2265b9a1f2e1561c6df9a48e71873b4203282·...·]/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="../../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:·08602c6c1fe2646d28e6ce986e375e9be2c568ddc1e9f98a1845816e60cf94f8·...·]/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="https://doc.rust-lang.org/1.83.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:·38e7222acbe153b5a2a453961926daef6987f12e51e092540441415e50313890·...·]/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="../../core/marker/trait.Sized.html"·title="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:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·b8ab8ac1cc2cc1dfc3bc940ed349e05673824a92857cb43c3be63178bec2b910·...·]/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="https://doc.rust-lang.org/1.83.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:·26e459c77cb9bf051c3ac640d0b2b3ec4b272937eed48d93c8732b2ebd34408b·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../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:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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.83.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>
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="../../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:·f1fed52f6518db7d895a6ab36a4243ccef5870154e4e131890674a272ec6187e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/trait.Clone.html"·title="tra[·...·truncated·by·diffoscope;·len:·11869,·SHA:·8cb7f35e7e3814f1a0ab1a5fea875b353ab8b052d25508d30d78643ffc30ade2·...·]/core/primitive.reference.html">&amp;mut·__H</a>)<div·class="where">where
23 ····__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:·e46c8a6ea2f9cb707be42990dd55dc8037374bc51a73b38d29dfaec5d4c66571·...·]/core/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where23 ····__H:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/hash/trait.Hasher.[·...·truncated·by·diffoscope;·len:·774,·SHA:·24fe999e7a746375409c192fd0d5224a91717dcba6d235ae1ea498c044c900d4·...·]/core/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where
24 ····H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,24 ····H:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,
25 ····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:·877ee8f4bde8363d7a607fab36df3796d1a54df278612fbb86af6cc108799898·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/hash/tr[·...·truncated·by·diffoscope;·len:·2240,·SHA:·e097487661a0cb512ae3e9166e2dd3b23605475a0bd255f281409d7e678367d9·...·]/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="../../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:·ea81e2f691da7d05ea2b3902709430ab767225db03912065c890ad44bed84eac·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/c[·...·truncated·by·diffoscope;·len:·476,·SHA:·a1bb3611c513c62c0ba85b4f8c7d3837e27fc0907c22a4401bc6bc465d6f7946·...·]/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="../../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:·d372216744b067e788ec764dfe05634c625f6a4123ef5daa46b0ec624917cae8·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/c[·...·truncated·by·diffoscope;·len:·480,·SHA:·21207c661579c2f05516e8a3eeecc5383ecc03c15c2f6fec81fc8cd787c34e42·...·]/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="../../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:·fda1a55f3963e0700cf671fdcac231d22c4f937daa187ce9182d25b5676c6130·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·2145,·SHA:·012f96e2088074ad92f2aa24fc9c70dd445acd5c377e9d0c40de924be1a3f249·...·]/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="../../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:·4cc1ca58794b62ca7ad66d076303a8a472e316e8e3316dc3a43f4c88452d78bd·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/cmp/trait.PartialOrd.html"·ti[·...·truncated·by·diffoscope;·len:·2876,·SHA:·12ef0c380725775890c389cf2fd0aca02a9c67cd55d7617097c404574ad9e826·...·]/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="../../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:·2c4d2605d6d3a10ba237d7b60d3446b7e5b4fd6d6c36186b53e36c9ec96f06a8·...·]/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="https://doc.rust-lang.org/1.83.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:·bff16aa7b6180f9c9e825baab5050fd8d156f7b74f95fc4a538d6c4263037902·...·]/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="../../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:·5ca129e18c891353619166a7f35b744a8f48e6eb7e582f32195fdd7cf3d41fb4·...·]/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="https://doc.rust-lang.org/1.83.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:·ce6445292a4970a68b1771b29a29429c481b87528b8c38457ed9e9b19f46da6a·...·]/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="../../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:·47ad9faf2e7e0779c714fd0f864124359faedd6ae60a8f9ce89f9507d4fdfb06·...·]/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="https://doc.rust-lang.org/1.83.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:·4b410e971cfab244226971a3818ec333f29dddd1afead1f05e25f4935a621b8a·...·]/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·[·...·truncated·by·diffoscope;·len:·672,·SHA:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·177b78315f049c4065999398ed2f89f85b6487d450f04912cef3a3be057e45e9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where35 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·604f234273b763a6bed19dbd345c594cd2aa8776b239765ce764b1e7c24bf9c9·...·]/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[·...·truncated·by·diffoscope;·len:·1551,·SHA:·a703c408c4e022a9f5f607159372ac6d607aaf923b3e1387c117f9b36f5022ac·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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=[·...·truncated·by·diffoscope;·len:·156,·SHA:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../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:·c2c8c9a4a4178ce9f649b57ef777997f02105c416fe8b6a7efafe289a2c82f94·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·3bbde9fc45defa1dca05b2d321fdaad6904f701633b311a788797b29fc3d0d8c·...·]/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#2672-2686">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="../../core/marker/trait.Sized.html"·title="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:·b3522f6656a75b8786d727c522d67358e29dfa2964a2f89c2aa386e5cf9583ce·...·]/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="https://doc.rust-lang.org/1.83.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:·4e66fd818d0db79470c3c05df8933adf2420d3b968fd4ca310e2824aa93e7fa4·...·]/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="../../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:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../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:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.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>
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="../../src/core/fmt/mod.rs.html#1273">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#1340">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="https://doc.rust-lang.org/1.83.0/src/core/fmt/mod.rs.html#1273">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:·6bdfff4b2c067776e47f76b9b60c6d447ade7515b8fecf330697ae5524ac4fd7·...·]/src/core/fmt/mod.rs.html#1340">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="../../core/primitive.bool.html">bool</a>,10 ····is_nonnegative:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.bool.html">bool</a>,
11 ····prefix:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>,11 ····prefix:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html">str</a>,
12 ····buf:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>,12 ····buf:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html">str</a>,
13 )·-&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·been13 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../src/core/fmt/mod.rs.html#1435">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·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="https://doc.rust-lang.org/1.83.0/src/core/fmt/mod.rs.html#1435">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.83.0/core/primitive.str.h[·...·truncated·by·diffoscope;·len:·212,·SHA:·4d7474a3ec43ec946b94aa81b712fff51a7ef161a44905204e6514a90dd2ab60·...·]/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="../../src/core/fmt/mod.rs.html#1633">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·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="https://doc.rust-lang.org/1.83.0/src/core/fmt/mod.rs.html#1633">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.83.0/core/[·...·truncated·by·diffoscope;·len:·227,·SHA:·e76c62a6448b5d77995f53701566bfc6f3979df5d9139e127ac1646eaf1daa64·...·]/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="../../src/core/fmt/mod.rs.html#1662">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>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.83.0/src/core/fmt/mod.rs.html#1662">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:·984d1fe5da453d1afd586ce93302352d7d2157b38ce3ca7702f22ca18119842e·...·]/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="../../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·itself.</p>94 the·<a·href="https://doc.rust-lang.org/1.83.0/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="../../src/core/fmt/mod.rs.html#1678">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>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.83.0/src/core/fmt/mod.rs.html#1678">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.83.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>
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#1711">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>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.83.0/src/core/fmt/mod.rs.html#1711">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.83.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>
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="../../src/core/fmt/mod.rs.html#1746">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>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.83.0/src/core/fmt/mod.rs.html#1746">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.83.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>
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="../../src/core/fmt/mod.rs.html#1781">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>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.83.0/src/core/fmt/mod.rs.html#1781">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.83.0/core/option/enum.Option.htm[·...·truncated·by·diffoscope;·len:·110,·SHA:·4d0c39e17a54f6cf172ee3c9b47c90b3dcc3d1405b6d0e5aee988990925ea896·...·]/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="../../src/core/fmt/mod.rs.html#1812">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.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.83.0/src/core/fmt/mod.rs.html#1812">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.83.0/core/option/enum.Op[·...·truncated·by·diffoscope;·len:·118,·SHA:·7f16d94356a0e41d901ad3bb98c97c732d2219d9dd87877100ca0460e07e648c·...·]/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/110899 bytes (60.65%) of diff not shown.
51.6 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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>)1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.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>)
2 <span·class="where">where2 <span·class="where">where
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>3 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·d72924d639e3a8690ad0dc7483ddca679b3a4a1badc6eab4d7361a4497dfa027·...·]/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="../../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="https://doc.rust-lang.org/1.83.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">where
6 ····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:·d8139c55ea7589813808f1774e9c5a63ea9f819183dba7010043b892fa236f84·...·]/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="https://doc.rust-lang.org/1.83.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:·488f52c8c7e8b0fc923cc7a7a664fade31005c200d5536bcf93cac91539bacdf·...·]/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="../../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:·9fc826c81e447a058547fa979a2d9653524e8c54d51bb2cf093190885e02f3af·...·]/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="https://doc.rust-lang.org/1.83.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:·63fdc4922cc4e54d4ca477379734799fad91f3c209613cef54539de37e415995·...·]/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="../../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">where8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a73144d117c0d9e19e16ad270dbae827ed459aa20f75152f716036a2e21f01b4·...·]/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="../../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">where9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·74ece14dd422899c0d9d06d194dd7bd6ab6fb4dadbe4d4dfbbeeecd06bbdc664·...·]/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="../../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">where10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·1651c0c88ce5b53fdf0db07acf0953d18a670829d2822dc06ea3006eeb4a25d5·...·]/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="../../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">where11 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·cffcfc6db9749ede358e01140f5ee1e329b5aa6fb230ce656a542664197cbdd8·...·]/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="../../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">where12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·04c5ecf692f75d65f2ae389dc83ffd2fcd73c3def28b8f6b85191c11ac2d49d4·...·]/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="../../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:·3a6ea56682989205da2150e07523639e0602ad36fda3f56ddab45e7f1c71858c·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a960a822666d72720b4cbffd4fad8e3874c7976c43f28622934913c171d236b7·...·]/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·[·...·truncated·by·diffoscope;·len:·672,·SHA:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·b8ab8ac1cc2cc1dfc3bc940ed349e05673824a92857cb43c3be63178bec2b910·...·]/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="https://doc.rust-lang.org/1.83.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:·26e459c77cb9bf051c3ac640d0b2b3ec4b272937eed48d93c8732b2ebd34408b·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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=[·...·truncated·by·diffoscope;·len:·156,·SHA:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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#2672-2686">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#2672-2686">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="../../core/marker/trait.Sized.html"·title="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:·b3522f6656a75b8786d727c522d67358e29dfa2964a2f89c2aa386e5cf9583ce·...·]/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="https://doc.rust-lang.org/1.83.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:·4e66fd818d0db79470c3c05df8933adf2420d3b968fd4ca310e2824aa93e7fa4·...·]/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·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.2 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#859">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.0/src/core/fmt/mod.rs.html#859">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="../../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;;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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../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>),6 <p>For·primitive·signed·integers·(<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.i8.html"·title="primitive·i8"><code>i8</code></a>·to·<a·href="https://doc.rust-lang.org/1.83.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:·c3848f1b7caa9d9cc4b11e00357bc04283975603bc2aff52c660806995f9e3fb·...·]/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="../../core/primitive.i32.html"·title="primitive·i32"><code>i32</code></a>:</p>11 <p>Basic·usage·with·<a·href="https://doc.rust-lang.org/1.83.0/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="../../src/core/fmt/mod.rs.html#862">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>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.83.0/src/core/fmt/mod.rs.html#862">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:·cb0e1d22e10198f6ac40e253f17f1b1a01ba0172b369259e5c3c312f215a9a39·...·]/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="../../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>.44 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.83.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:·e842551e8cffe04acae8f10b8b6fc7337d013d2a4666005749f99045b11d7f74·...·]/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="../../src/core/fmt/num.rs.html#176">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:·8aab507dba065f18209cc47fc4d7c895620e47a8ecdde348bb1c038a7f20d62f·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/fmt/num.rs.html#176">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:·93a187a8be5ed2307d7a41fbde26fae634b12a793ce9491131ffb51fae776f67·...·]/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="../../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:·1ae841196b7145f8a72be0eafbff07136225f82e2a8a862f7c4e1a9312995518·...·]/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="https://doc.rust-lang.org/1.83.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:·8e459a9385a31b853ddca4336a345021a074f3c0591d254a9304833dfb5a2bbb·...·]/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="../../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:·301,·SHA:·012a842c5e0ea75425d8ea5e34a62198bcea673bb3cbe302aafc8ff12d368ae5·...·]/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="https://doc.rust-lang.org/1.83.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:·382,·SHA:·3c9e045ad048e9832a8e31d0073e4c9e49a60400029e48b3844a63512521f7ca·...·]/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="../../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:·e96853a65dfbde51a015867f95996f769db3f2fcabc75ecf187d39507f70b151·...·]/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="https://doc.rust-lang.org/1.83.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:·97092586c60dec2bc59f09e60b10a066662b147baf9cf0f29d9c83cf3642830e·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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:·119d7d7f7c7939a69419935bad85af56b0e65035168331ccb2ad7ac03b6b81d0·...·]/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
    
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="`?`·formatting."><title>Debug·in·alloc::fmt·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Debug</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#stability"·title="Stability">Stability</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">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.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#607">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Debug·{1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="`?`·formatting."><title>Debug·in·alloc::fmt·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Debug</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#stability"·title="Stability">Stability</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">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.36.0">1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.83.0/src/core/fmt/mod.rs.html#607">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·trait·Debug·{
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="../../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;;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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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>?</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>?</code>·formatting.</p>
5 <p><code>Debug</code>·should·format·the·output·in·a·programmer-facing,·debugging·context.</p>5 <p><code>Debug</code>·should·format·the·output·in·a·programmer-facing,·debugging·context.</p>
6 <p>Generally·speaking,·you·should·just·<code>derive</code>·a·<code>Debug</code>·implementation.</p>6 <p>Generally·speaking,·you·should·just·<code>derive</code>·a·<code>Debug</code>·implementation.</p>
7 <p>When·used·with·the·alternate·format·specifier·<code>#?</code>,·the·output·is·pretty-printed.</p>7 <p>When·used·with·the·alternate·format·specifier·<code>#?</code>,·the·output·is·pretty-printed.</p>
8 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>8 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>
9 <p>This·trait·can·be·used·with·<code>#[derive]</code>·if·all·fields·implement·<code>Debug</code>.·When9 <p>This·trait·can·be·used·with·<code>#[derive]</code>·if·all·fields·implement·<code>Debug</code>.·When
10 <code>derive</code>d·for·structs,·it·will·use·the·name·of·the·<code>struct</code>,·then·<code>{</code>,·then·a10 <code>derive</code>d·for·structs,·it·will·use·the·name·of·the·<code>struct</code>,·then·<code>{</code>,·then·a
Offset 80, 17 lines modifiedOffset 80, 17 lines modified
80 <span·class="kw">let·</span>origin·=·Point·{·x:·<span·class="number">0</span>,·y:·<span·class="number">0·</span>};80 <span·class="kw">let·</span>origin·=·Point·{·x:·<span·class="number">0</span>,·y:·<span·class="number">0·</span>};
  
81 <span·class="kw">let·</span>expected·=·<span·class="string">"The·origin·is:·Point·{81 <span·class="kw">let·</span>expected·=·<span·class="string">"The·origin·is:·Point·{
82 ····x:·0,82 ····x:·0,
83 ····y:·0,83 ····y:·0,
84 }"</span>;84 }"</span>;
85 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"The·origin·is:·{origin:#?}"</span>),·expected);</code></pre><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%5Bderive(Debug)%5D%0A++++struct+Point+%7B%0A++++++++x:+i32,%0A++++++++y:+i32,%0A++++%7D%0A++++%0A++++let+origin+=+Point+%7B+x:+0,+y:+0+%7D;%0A++++%0A++++let+expected+=+%22The+origin+is:+Point+%7B%0A++++++++x:+0,%0A++++++++y:+0,%0A++++%7D%22;%0A++++assert_eq!(format!(%22The+origin+is:+%7Borigin:%23?%7D%22),+expected);%0A%7D&amp;edition=2021"></a></div>85 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"The·origin·is:·{origin:#?}"</span>),·expected);</code></pre><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%5Bderive(Debug)%5D%0A++++struct+Point+%7B%0A++++++++x:+i32,%0A++++++++y:+i32,%0A++++%7D%0A++++%0A++++let+origin+=+Point+%7B+x:+0,+y:+0+%7D;%0A++++%0A++++let+expected+=+%22The+origin+is:+Point+%7B%0A++++++++x:+0,%0A++++++++y:+0,%0A++++%7D%22;%0A++++assert_eq!(format!(%22The+origin+is:+%7Borigin:%23?%7D%22),+expected);%0A%7D&amp;edition=2021"></a></div>
86 </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#638">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>86 </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.83.0/src/core/fmt/mod.rs.html#638">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:·cb0e1d22e10198f6ac40e253f17f1b1a01ba0172b369259e5c3c312f215a9a39·...·]/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>
87 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>87 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
88 <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>.88 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.83.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:·e842551e8cffe04acae8f10b8b6fc7337d013d2a4666005749f99045b11d7f74·...·]/core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.
89 String·formatting·is·considered·an·infallible·operation;·this·function·only89 String·formatting·is·considered·an·infallible·operation;·this·function·only
90 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·must90 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
91 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>91 provide·a·way·to·propagate·the·fact·that·an·error·has·occurred·back·up·the·stack.</p>
92 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>92 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
93 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;93 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
94 <span·class="kw">struct·</span>Position·{94 <span·class="kw">struct·</span>Position·{
Offset 110, 185 lines modifiedOffset 110, 185 lines modified
110 <span·class="kw">let·</span>position·=·Position·{·longitude:·<span·class="number">1.987</span>,·latitude:·<span·class="number">2.983·</span>};110 <span·class="kw">let·</span>position·=·Position·{·longitude:·<span·class="number">1.987</span>,·latitude:·<span·class="number">2.983·</span>};
111 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{position:?}"</span>),·<span·class="string">"(1.987,·2.983)"</span>);111 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{position:?}"</span>),·<span·class="string">"(1.987,·2.983)"</span>);
  
112 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{position:#?}"</span>),·<span·class="string">"(112 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{position:#?}"</span>),·<span·class="string">"(
113 ····1.987,113 ····1.987,
114 ····2.983,114 ····2.983,
115 )"</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+Position+%7B%0A++++++++longitude:+f32,%0A++++++++latitude:+f32,%0A++++%7D%0A++++%0A++++impl+fmt::Debug+for+Position+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++f.debug_tuple(%22%22)%0A+++++++++++++.field(%26self.longitude)%0A+++++++++++++.field(%26self.latitude)%0A+++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+position+=+Position+%7B+longitude:+1.987,+latitude:+2.983+%7D;%0A++++assert_eq!(format!(%22%7Bposition:?%7D%22),+%22(1.987,+2.983)%22);%0A++++%0A++++assert_eq!(format!(%22%7Bposition:%23?%7D%22),+%22(%0A++++++++1.987,%0A++++++++2.983,%0A++++)%22);%0A%7D&amp;edition=2021"></a></div>115 )"</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+Position+%7B%0A++++++++longitude:+f32,%0A++++++++latitude:+f32,%0A++++%7D%0A++++%0A++++impl+fmt::Debug+for+Position+%7B%0A++++++++fn+fmt(%26self,+f:+%26mut+fmt::Formatter%3C'_%3E)+-%3E+fmt::Result+%7B%0A++++++++++++f.debug_tuple(%22%22)%0A+++++++++++++.field(%26self.longitude)%0A+++++++++++++.field(%26self.latitude)%0A+++++++++++++.finish()%0A++++++++%7D%0A++++%7D%0A++++%0A++++let+position+=+Position+%7B+longitude:+1.987,+latitude:+2.983+%7D;%0A++++assert_eq!(format!(%22%7Bposition:?%7D%22),+%22(1.987,+2.983)%22);%0A++++%0A++++assert_eq!(format!(%22%7Bposition:%23?%7D%22),+%22(%0A++++++++1.987,%0A++++++++2.983,%0A++++)%22);%0A%7D&amp;edition=2021"></a></div>
116 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Debug-for-Char"·class="impl"><a·class="src·rightside"·href="../../src/core/ascii/ascii_char.rs.html#588">source</a><a·href="#impl-Debug-for-Char"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug[·...·truncated·by·diffoscope;·len:·77812,·SHA:·267513909056e3b8e43fc984f6e75c645d213009f93f8d15f82b95807abc7484·...·]/core/ffi/va_list/struct.VaList.html"·title="struct·core::ffi::va_list::VaList">VaList</a>&lt;'a,·'f&gt;<div·class="where">where116 </div></details></div><h2·id="implementors"·class="section-header">Implementors<a·href="#implementors"·class="anchor">§</a></h2><div·id="implementors-list"><section·id="impl-Debug-for-TryReserveErrorKind"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#77">source</a><a·href="#impl-Debug-for-TryReserveErrorKind"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.Debug.html"·t[·...·truncated·by·diffoscope;·len:·84535,·SHA:·0dbf105f1ce8ac2b2bf5919cbb2cc7d131004f6acd70af16ed535e1797704427·...·]/core/ffi/va_list/struct.VaList.html"·title="struct·core::ffi::va_list::VaList">VaList</a>&lt;'a,·'f&gt;<div·class="where">where
117 ····'f:·'a,</div></h3></section><section·id="impl-Debug-for-Iter%3C'a,+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/option.rs.html#2270">source</a></span><a·href="#impl-Debug-for-Iter%3C'a,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·core::option[·...·truncated·by·diffoscope;·len:·31,·SHA:·d4c33a258df617cf8f40fc0ed39ab27ad7f0c5209620c5ec82fc77f3106e707c·...·]/core/option/struct.Iter.html"·title="struct·core::option::Iter">Iter</a>&lt;'a,·A&gt;<div·class="where">where117 ····'f:·'a,</div></h3></section><section·id="impl-Debug-for-Iter%3C'a,+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.83.0/src/core/option.rs.html#2270">source</a></span><a·href="#impl-Debug-for-Iter%3C'a,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"[·...·truncated·by·diffoscope;·len:·85,·SHA:·234b716a25ee9a9741ab821813eccf3374deea4896f4d0acccd3f284752c6d9a·...·]/core/option/struct.Iter.html"·title="struct·core::option::Iter">Iter</a>&lt;'a,·A&gt;<div·class="where">where
118 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-IterMut%3C'a,+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/option.rs.html#2320">source</a></span><a·href="#impl-Debug-for-IterMut%3C'a,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·core::opt[·...·truncated·by·diffoscope;·len:·34,·SHA:·04999a94250bf5a756aaefac29f6931bdf529bb82cd3ffa3746931c143a85993·...·]/core/option/struct.IterMut.html"·title="struct·core::option::IterMut">IterMut</a>&lt;'a,·A&gt;<div·class="where">where118 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-IterMut%3C'a,+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.83.0/src/core/option.rs.html#2320">source</a></span><a·href="#impl-Debug-for-IterMut%3C'a,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Deb[·...·truncated·by·diffoscope;·len:·88,·SHA:·d39647efc23fbe0c3e63fc7972050bd98432e86e6e92745fae7e03039f566cb7·...·]/core/option/struct.IterMut.html"·title="struct·core::option::IterMut">IterMut</a>&lt;'a,·A&gt;<div·class="where">where
119 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-ByRefSized%3C'a,+I%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/iter/adapters/by_ref_sized.rs.html#9">source</a><a·href="#impl-Debug-for-ByRefSized%3C'a,+I%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·[·...·truncated·by·diffoscope;·len:·33,·SHA:·e26f4ff75d20cf6aeb3837994e7501dec04bca8f697ac7487ae8ea6a8d6ccdbb·...·]/core/iter/adapters/by_ref_sized/struct.ByRefSized.html"·title="struct·core::iter::adapters::by_ref_sized::ByRefSized">ByRefSized</a>&lt;'a,·I&gt;<div·class="where">where119 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-ByRefSized%3C'a,+I%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/iter/adapters/by_ref_sized.rs.html#9">source</a><a·href="#impl-Debug-for-ByRefSized%3C'a,+I%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·al[·...·truncated·by·diffoscope;·len:·87,·SHA:·f6e7ac62a662b9f7e25acbac0a99fbd37d66a1891a2ae54e68b6b9216dddc935·...·]/core/iter/adapters/by_ref_sized/struct.ByRefSized.html"·title="struct·core::iter::adapters::by_ref_sized::ByRefSized">ByRefSized</a>&lt;'a,·I&gt;<div·class="where">where
120 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><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="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="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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../vec/struct.Splice.html"·title="struct·alloc::vec::Splice">Splice</a>&lt;'a,·I,·A&gt;<div·class="where">where120 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·+·'a,·A:·<a·class="trait"·href="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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../vec/struct.Splice.html"·title="struct·alloc::vec::Splice">Splice</a>&lt;'a,·I,·A&gt;<div·class="where">where
121 ····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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id[·...·truncated·by·diffoscope;·len:·180,·SHA:·db42dc648d751847781426d23aac6b27f55c6e3b0a40af22f4f5b053c558e768·...·]/src/core/str/iter.rs.html#1081-1097">source</a></span><a·href="#impl-Debug-for-MatchIndices%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/struct.MatchIndices.html"·title="struct·alloc::str::MatchIndices">MatchIndices</a>&lt;'a,·P&gt;<div·class="where">where121 ····I::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div[·...·truncated·by·diffoscope;·len:·234,·SHA:·802180e2f6dedb6ce5132def684537e6ca5c96c6c69273e378d42e6022b88857·...·]/src/core/str/iter.rs.html#1081-1097">source</a></span><a·href="#impl-Debug-for-MatchIndices%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/struct.MatchIndices.html"·title="struct·alloc::str::MatchIndices">MatchIndices</a>&lt;'a,·P&gt;<div·class="where">where
122 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,122 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
123 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-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-Debug-for-Matches%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/struct.Matches.html"·title="struct·alloc::str::Matches">Matches</a>&lt;'a,·P&gt;<div·class="where">where123 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-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.83.0/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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/struct.Matches.html"·title="struct·alloc::str::Matches">Matches</a>&lt;'a,·P&gt;<div·class="where">where
124 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,124 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
125 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-RMatchIndices%3C'a,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1081-1097">source</a></span><a·href="#impl-Debug-for-RMatchIndices%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/struct.RMatchIndices.html"·title="struct·alloc::str::RMatchIndices">RMatchIndices</a>&lt;'a,·P&gt;<div·class="where">where125 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-RMatchIndices%3C'a,+P%3E"·class="impl"><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.83.0/src/core/str/iter.rs.html#1081-1097">source</a></span><a·href="#impl-Debug-for-RMatchIndices%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/struct.RMatchIndices.html"·title="struct·alloc::str::RMatchIndices">RMatchIndices</a>&lt;'a,·P&gt;<div·class="where">where
126 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,126 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
127 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-RMatches%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-Debug-for-RMatches%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/struct.RMatches.html"·title="struct·alloc::str::RMatches">RMatches</a>&lt;'a,·P&gt;<div·class="where">where127 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-RMatches%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.83.0/src/core/str/iter.rs.html#1138-1154">source</a></span><a·href="#impl-Debug-for-RMatches%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/struct.RMatches.html"·title="struct·alloc::str::RMatches">RMatches</a>&lt;'a,·P&gt;<div·class="where">where
128 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,128 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
129 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-RSplit%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#789-805">source</a></span><a·href="#impl-Debug-for-RSplit%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::str::<a·class="struct"·href="../str/struct.RSplit.html"·title="struct·alloc::str::RSplit">RSplit</a>&lt;'a,·P&gt;<div·class="where">where129 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-RSplit%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.83.0/src/core/str/iter.rs.html#789-805">source</a></span><a·href="#impl-Debug-for-RSplit%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::str::<a·class="struct"·href="../str/struct.RSplit.html"·title="struct·alloc::str::RSplit">RSplit</a>&lt;'a,·P&gt;<div·class="where">where
130 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,130 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
131 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-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-Debug-for-RSplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::str::<a·class="struct"·href="../str/struct.RSplitN.html"·title="struct·alloc::str::RSplitN">RSplitN</a>&lt;'a,·P&gt;<div·class="where">where131 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-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.83.0/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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::str::<a·class="struct"·href="../str/struct.RSplitN.html"·title="struct·alloc::str::RSplitN">RSplitN</a>&lt;'a,·P&gt;<div·class="where">where
132 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,132 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
133 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-RSplitTerminator%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#853-869">source</a></span><a·href="#impl-Debug-for-RSplitTerminator%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/struct.RSplitTerminator.html"·title="struct·alloc::str::RSplitTerminator">RSplitTerminator</a>&lt;'a,·P&gt;<div·class="where">where133 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-RSplitTerminator%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.83.0/src/core/str/iter.rs.html#853-869">source</a></span><a·href="#impl-Debug-for-RSplitTerminator%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/struct.RSplitTerminator.html"·title="struct·alloc::str::RSplitTerminator">RSplitTerminator</a>&lt;'a,·P&gt;<div·class="where">where
134 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,134 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
135 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Split%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#789-805">source</a></span><a·href="#impl-Debug-for-Split%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::str::<a·class="struct"·href="../str/struct.Split.html"·title="struct·alloc::str::Split">Split</a>&lt;'a,·P&gt;<div·class="where">where135 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Split%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.83.0/src/core/str/iter.rs.html#789-805">source</a></span><a·href="#impl-Debug-for-Split%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::str::<a·class="struct"·href="../str/struct.Split.html"·title="struct·alloc::str::Split">Split</a>&lt;'a,·P&gt;<div·class="where">where
136 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,136 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
137 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-SplitInclusive%3C'a,+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/str/iter.rs.html#1431">source</a></span><a·href="#impl-Debug-for-SplitInclusive%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::str::<a·class="struct"·href="../str/struct.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">SplitInclusive</a>&lt;'a,·P&gt;<div·class="where">where137 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-SplitInclusive%3C'a,+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.83.0/src/core/str/iter.rs.html#1431">source</a></span><a·href="#impl-Debug-for-SplitInclusive%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::str::<a·class="struct"·href="../str/struct.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">SplitInclusive</a>&lt;'a,·P&gt;<div·class="where">where
138 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,138 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
139 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-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-Debug-for-SplitN%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::str::<a·class="struct"·href="../str/struct.SplitN.html"·title="struct·alloc::str::SplitN">SplitN</a>&lt;'a,·P&gt;<div·class="where">where139 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-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.83.0/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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::str::<a·class="struct"·href="../str/struct.SplitN.html"·title="struct·alloc::str::SplitN">SplitN</a>&lt;'a,·P&gt;<div·class="where">where
140 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,140 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
141 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-SplitTerminator%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#853-869">source</a></span><a·href="#impl-Debug-for-SplitTerminator%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/struct.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">SplitTerminator</a>&lt;'a,·P&gt;<div·class="where">where141 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-SplitTerminator%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.83.0/src/core/str/iter.rs.html#853-869">source</a></span><a·href="#impl-Debug-for-SplitTerminator%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/struct.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">SplitTerminator</a>&lt;'a,·P&gt;<div·class="where">where
142 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,142 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
143 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-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/core/result.rs.html#1798">source</a></span><a·href="#impl-Debug-for-Iter%3C'a,+T%3E"·class="anch[·...·truncated·by·diffoscope;·len:·250,·SHA:·d359508187e40057a348da7fd18f62b1dd0e4cb9da272bbf32cab52da9db29d7·...·]</a>&lt;'a,·T&gt;<div·class="where">where143 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>&lt;'a&gt;:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Chunks%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.83.0/src/core/slice/iter.rs.html#1477">source</a></span><a·href="#impl-Debug[·...·truncated·by·diffoscope;·len:·268,·SHA:·e2eca1c1c7ad1abb95c453c3a559ff773aeb816d36fe4dab9bfae164734802ef·...·]</a>&lt;'a,·T&gt;<div·class="where">where
144 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-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/core/result.rs.html#1847">source</a></span><a·href="#impl-Debug-for-IterMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·core::result::<a·class="struct"·href="../../core/result/struct.IterMut.html"·title="struct·core::result::IterMut">IterMut</a>&lt;'a,·T&gt;<div·class="where">where 
145 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-Chunks%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#1477">source</a></span><a·href="#impl-Debug-for-Chunks%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.Chunks.html"·title="struct·alloc::slice::Chunks">Chunks</a>&lt;'a,·T&gt;<div·class="where">where 
146 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-ChunksExact%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#1852">source</a></span><a·href="#impl-Debug-for-ChunksExact%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ChunksExact.html"·title="struct·alloc::slice::ChunksExact">ChunksExact</a>&lt;'a,·T&gt;<div·class="where">where144 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-ChunksExact%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.83.0/src/core/slice/iter.rs.html#1852">source</a></span><a·href="#impl-Debug-for-ChunksExact%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ChunksExact.html"·title="struct·alloc::slice::ChunksExact">ChunksExact</a>&lt;'a,·T&gt;<div·class="where">where
147 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ChunksExactMut.html"·title="struct·alloc::slice::ChunksExactMut">ChunksExactMut</a>&lt;'a,·T&gt;<div·class="where">where145 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><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.83.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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ChunksExactMut.html"·title="struct·alloc::slice::ChunksExactMut">ChunksExactMut</a>&lt;'a,·T&gt;<div·class="where">where
148 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ChunksMut.html"·title="struct·alloc::slice::ChunksMut">ChunksMut</a>&lt;'a,·T&gt;<div·class="where">where146 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><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.83.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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ChunksMut.html"·title="struct·alloc::slice::ChunksMut">ChunksMut</a>&lt;'a,·T&gt;<div·class="where">where
149 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-RChunks%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#2569">source</a></span><a·href="#impl-Debug-for-RChunks%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.RChunks.html"·title="struct·alloc::slice::RChunks">RChunks</a>&lt;'a,·T&gt;<div·class="where">where147 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-RChunks%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.83.0/src/core/slice/iter.rs.html#2569">source</a></span><a·href="#impl-Debug-for-RChunks%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.RChunks.html"·title="struct·alloc::slice::RChunks">RChunks</a>&lt;'a,·T&gt;<div·class="where">where
150 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-RChunksExact%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#2939">source</a></span><a·href="#impl-Debug-for-RChunksExact%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.RChunksExact.html"·title="struct·alloc::slice::RChunksExact">RChunksExact</a>&lt;'a,·T&gt;<div·class="where">where148 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-RChunksExact%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.83.0/src/core/slice/iter.rs.html#2939">source</a></span><a·href="#impl-Debug-for-RChunksExact%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.RChunksExact.html"·title="struct·alloc::slice::RChunksExact">RChunksExact</a>&lt;'a,·T&gt;<div·class="where">where
151 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.RChunksExactMut.html"·title="struct·alloc::slice::RChunksExactMut">RChunksExactMut</a>&lt;'a,·T&gt;<div·class="where">where149 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><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.83.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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.RChunksExactMut.html"·title="struct·alloc::slice::RChunksExactMut">RChunksExactMut</a>&lt;'a,·T&gt;<div·class="where">where
152 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.RChunksMut.html"·title="struct·alloc::slice::RChunksMut">RChunksMut</a>&lt;'a,·T&gt;<div·class="where">where150 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><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.83.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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.RChunksMut.html"·title="struct·alloc::slice::RChunksMut">RChunksMut</a>&lt;'a,·T&gt;<div·class="where">where
153 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-Windows%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#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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.Windows.html"·title="struct·alloc::slice::Windows">Windows</a>&lt;'a,·T&gt;<div·class="where">where151 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-Windows%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.83.0/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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.Windows.html"·title="struct·alloc::slice::Windows">Windows</a>&lt;'a,·T&gt;<div·class="where">where
 152 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-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="https://doc.rust-lang.org/1.83.0/src/core/result.rs.html#1798">source</a></span><a·href="#impl-Debug-for-Iter%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·core::result::<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/result/struct.Iter.html"·title="struct·core::result::Iter">Iter</a>&lt;'a,·T&gt;<div·class="where">where
 153 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-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="https://doc.rust-lang.org/1.83.0/src/core/result.rs.html#1847">source</a></span><a·href="#impl-Debug-for-IterMut%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·core::result::<a·class="struct"·href="https://doc.rust-lang.org/1.83.0/core/result/struct.IterMut.html"·title="struct·core::result::IterMut">IterMut</a>&lt;'a,·T&gt;<div·class="where">where
154 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ChunkBy.html"·title="struct·alloc::slice::ChunkBy">ChunkBy</a>&lt;'a,·T,·P&gt;<div·class="where">where154 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><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.83.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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ChunkBy.html"·title="struct·alloc::slice::ChunkBy">ChunkBy</a>&lt;'a,·T,·P&gt;<div·class="where">where
155 ····T:·'a·+·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ChunkByMut.html"·title="struct·alloc::slice::ChunkByMut">ChunkByMut</a>&lt;'a,·T,·P&gt;<div·class="where">where155 ····T:·'a·+·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><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.83.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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ChunkByMut.html"·title="struct·alloc::slice::ChunkByMut">ChunkByMut</a>&lt;'a,·T,·P&gt;<div·class="where">where
156 ····T:·'a·+·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-ArrayChunks%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2325">source</a><a·href="#impl-Debug-for-ArrayChunks%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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::slice::<a·class="struct"·href="../slice/struct.ArrayChunks.html"·title="struct·alloc::slice::ArrayChunks">ArrayChunks</a>&lt;'a,·T,·N&gt;<div·class="where">where156 ····T:·'a·+·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-ArrayChunks%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#2325">source</a><a·href="#impl-Debug-for-ArrayChunks%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.83.0/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::slice::<a·class="struct"·href="../slice/struct.ArrayChunks.html"·title="struct·alloc::slice::ArrayChunks">ArrayChunks</a>&lt;'a,·T,·N&gt;<div·class="where">where
157 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ArrayChunksMut.html"·title="struct·alloc::slice::ArrayChunksMut">ArrayChunksMut</a>&lt;'a,·T,·N&gt;<div·class="where">where157 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-ArrayChunksMut%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ArrayChunksMut.html"·title="struct·alloc::slice::ArrayChunksMut">ArrayChunksMut</a>&lt;'a,·T,·N&gt;<div·class="where">where
158 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-ArrayWindows%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2199">source</a><a·href="#impl-Debug-for-ArrayWindows%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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ArrayWindows.html"·title="struct·alloc::slice::ArrayWindows">ArrayWindows</a>&lt;'a,·T,·N&gt;<div·class="where">where158 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-for-ArrayWindows%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#2199">source</a><a·href="#impl-Debug-for-ArrayWindows%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.83.[·...·truncated·by·diffoscope;·len:·1,·SHA:·5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9·...·]/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../slice/struct.ArrayWindows.html"·title="struct·alloc::slice::ArrayWindows">ArrayWindows</a>&lt;'a,·T,·N&gt;<div·class="where">where
159 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-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#164">source</a></span><a·href="#impl-Debug-for-Range%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::collections::btree_set::<a·class="struct"·href="../collections/btree_set/struct.Range.html"·title="struct·alloc::collections::btree_set::Range">Range</a>&lt;'a,·T&gt;</h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,·A:·<a·class="trait"·href="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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::collections::binary_heap::<a·class="struct"·href="../collections/binary_heap/struct.Drain.html"·title="struct·alloc::collections::binary_heap::Drain">Drain</a>&lt;'a,·T,·A&gt;</h3></section><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="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="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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../collections/binary_heap/struct.DrainSorted.html"·title="struct·alloc::collections::binary_heap::DrainSorted">DrainSorted</a>&lt;'a,·T,·A&gt;</h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·F,·A:·<a·class="trait"·href="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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::vec::<a·class="struct"·href="../vec/struct.ExtractIf.html"·title="struct·alloc::vec::ExtractIf">ExtractIf</a>&lt;'a,·T,·F,·A&gt;<div·class="where">where159 ····T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section><section·id="impl-Debug-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#164">source</a></span><a·href="#impl-Debug-for-Range%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::collections::btree_set::<a·class="struct"·href="../collections/btree_set/struct.Range.html"·title="struct·alloc::collections::btree_set::Range">Range</a>&lt;'a,·T&gt;</h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,·A:·<a·class="trait"·href="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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::collections::binary_heap::<a·class="struct"·href="../collections/binary_heap/struct.Drain.html"·title="struct·alloc::collections::binary_heap::Drain">Drain</a>&lt;'a,·T,·A&gt;</h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../collections/binary_heap/struct.DrainSorted.html"·title="struct·alloc::collections::binary_heap::DrainSorted">DrainSorted</a>&lt;'a,·T,·A&gt;</h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,·F,·A:·<a·class="trait"·href="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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·alloc::vec::<a·class="struct"·href="../vec/struct.ExtractIf.html"·title="struct·alloc::vec::ExtractIf">ExtractIf</a>&lt;'a,·T,·F,·A&gt;<div·class="where">where
160 ····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:·1646,·SHA:·8b9b1b5bb9fb15eff9522cb99a38e0c06ea231ca7d28d79d9ecda2a0f4141632·...·]/core/iter/sources/repeat/struct.Repeat.html"·title="struct·core::iter::sources::repeat::Repeat">Repeat</a>&lt;A&gt;<div·class="where">where160 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·1889,·SHA:·dd1d289feea05a9f75f1c534b5017c016f78c8314c19adcc74a874178505fa42·...·]/core/iter/sources/repeat/struct.Repeat.html"·title="struct·core::iter::sources::repeat::Repeat">Repeat</a>&lt;A&gt;<div·class="where">where
161 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-RepeatN%3CA%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/core/iter/sources/repeat_n.rs.html#121">source</a></span><a·href="#impl-Debug-for-RepeatN%3CA%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·[·...·truncated·by·diffoscope;·len:·26,·SHA:·764ed6fb3e5634b1c74590618be065fb2815a44b2cec7c351a5ebd1c98238ac5·...·]/core/iter/sources/repeat_n/struct.RepeatN.html"·title="struct·core::iter::sources::repeat_n::RepeatN">RepeatN</a>&lt;A&gt;<div·class="where">where161 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-RepeatN%3CA%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="https://doc.rust-lang.org/1.83.0/src/core/iter/sources/repeat_n.rs.html#121">source</a></span><a·href="#impl-Debug-for-RepeatN%3CA%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fm[·...·truncated·by·diffoscope;·len:·80,·SHA:·0c2ed642a0b8bb985d3803e5493d7e2f0bddb16324d8014bc290fac6b6f42615·...·]/core/iter/sources/repeat_n/struct.RepeatN.html"·title="struct·core::iter::sources::repeat_n::RepeatN">RepeatN</a>&lt;A&gt;<div·class="where">where
162 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-IntoIter%3CA%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/option.rs.html#2360">source</a></span><a·href="#impl-Debug-for-IntoIter%3CA%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·core::option::<a[·...·truncated·by·diffoscope;·len:·27,·SHA:·1463a98b6dfbafe89b3cea16955fc8363cc824de0c5516823d62738300d86245·...·]/core/option/struct.IntoIter.html"·title="struct·core::option::IntoIter">IntoIter</a>&lt;A&gt;<div·class="where">where162 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-IntoIter%3CA%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.83.0/src/core/option.rs.html#2360">source</a></span><a·href="#impl-Debug-for-IntoIter%3CA%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Deb[·...·truncated·by·diffoscope;·len:·81,·SHA:·8397e9a3291e9b0609f76d9a79d74e846fce257474c5688295f7d832f4a38769·...·]/core/option/struct.IntoIter.html"·title="struct·core::option::IntoIter">IntoIter</a>&lt;A&gt;<div·class="where">where
163 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-IterRange%3CA%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/range/iter.rs.html#9">source</a><a·href="#impl-Debug-for-IterRange%3CA%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·hre[·...·truncated·by·diffoscope;·len:·8,·SHA:·33dbd245b648d41c56eb1011c43e998f0e623642374a0bcaddf5be1415191c4e·...·]/core/range/iter/struct.IterRange.html"·title="struct·core::range::iter::IterRange">IterRange</a>&lt;A&gt;<div·class="where">where163 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-IterRange%3CA%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/range/iter.rs.html#9">source</a><a·href="#impl-Debug-for-IterRange%3CA%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a[·...·truncated·by·diffoscope;·len:·62,·SHA:·b7ba716418d68d00cf1062889f0779c5760f1810cf402d2d402c34d021356caa·...·]/core/range/iter/struct.IterRange.html"·title="struct·core::range::iter::IterRange">IterRange</a>&lt;A&gt;<div·class="where">where
164 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-IterRangeFrom%3CA%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/range/iter.rs.html#295">source</a><a·href="#impl-Debug-for-IterRangeFrom%3CA%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struc[·...·truncated·by·diffoscope;·len:·14,·SHA:·e4806a188e671314f81ff3b1fee0bccf3020bae01cc54582b1d457f13811d2d9·...·]/core/range/iter/struct.IterRangeFrom.html"·title="struct·core::range::iter::IterRangeFrom">IterRangeFrom</a>&lt;A&gt;<div·class="where">where164 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-IterRangeFrom%3CA%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/range/iter.rs.html#295">source</a><a·href="#impl-Debug-for-IterRangeFrom%3CA%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">De[·...·truncated·by·diffoscope;·len:·68,·SHA:·4f3dbf7471aab935aabdfc98d9da19ed32fb3071351a133612fbc221643a9139·...·]/core/range/iter/struct.IterRangeFrom.html"·title="struct·core::range::iter::IterRangeFrom">IterRangeFrom</a>&lt;A&gt;<div·class="where">where
165 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-IterRangeInclusive%3CA%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/range/iter.rs.html#155">source</a><a·href="#impl-Debug-for-IterRangeInclusive%3CA%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="[·...·truncated·by·diffoscope;·len:·19,·SHA:·1ccc7a9b344cfd723c78ecbcf0a97e4067d48dc2be9d0f701905bc6682e4278e·...·]/core/range/iter/struct.IterRangeInclusive.html"·title="struct·core::range::iter::IterRangeInclusive">IterRangeInclusive</a>&lt;A&gt;<div·class="where">where165 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-IterRangeInclusive%3CA%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/range/iter.rs.html#155">source</a><a·href="#impl-Debug-for-IterRangeInclusive%3CA%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debu[·...·truncated·by·diffoscope;·len:·73,·SHA:·7abd7902516d088687e6689f23147dc6c91c6a523d9183dbbc9a867cc7bdece2·...·]/core/range/iter/struct.IterRangeInclusive.html"·title="struct·core::range::iter::IterRangeInclusive">IterRangeInclusive</a>&lt;A&gt;<div·class="where">where
166 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Chain%3CA,+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/core/iter/adapters/chain.rs.html#20">source</a></span><a·href="#impl-Debug-for-Chain%3CA,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A,·B&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a[·...·truncated·by·diffoscope;·len:·27,·SHA:·1463a98b6dfbafe89b3cea16955fc8363cc824de0c5516823d62738300d86245·...·]/core/iter/adapters/chain/struct.Chain.html"·title="struct·core::iter::adapters::chain::Chain">Chain</a>&lt;A,·B&gt;<div·class="where">where166 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Chain%3CA,+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="https://doc.rust-lang.org/1.83.0/src/core/iter/adapters/chain.rs.html#20">source</a></span><a·href="#impl-Debug-for-Chain%3CA,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A,·B&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::f[·...·truncated·by·diffoscope;·len:·81,·SHA:·d5e04f2b533caaf49f45873377475d11f9e52a1a6de1619dc48e7b44af626d0d·...·]/core/iter/adapters/chain/struct.Chain.html"·title="struct·core::iter::adapters::chain::Chain">Chain</a>&lt;A,·B&gt;<div·class="where">where
167 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,167 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
168 ····B:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Zip%3CA,+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/core/iter/adapters/zip.rs.html#498">source</a></span><a·href="#impl-Debug-for-Zip%3CA,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A,·B&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·cl[·...·truncated·by·diffoscope;·len:·24,·SHA:·a484d240ae7654847a266b06e2b0fb5e758035e3b44a1c3e243655765c98e723·...·]/core/iter/adapters/zip/struct.Zip.html"·title="struct·core::iter::adapters::zip::Zip">Zip</a>&lt;A,·B&gt;<div·class="where">where168 ····B:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Zip%3CA,+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="https://doc.rust-lang.org/1.83.0/src/core/iter/adapters/zip.rs.html#498">source</a></span><a·href="#impl-Debug-for-Zip%3CA,+B%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;A,·B&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt:[·...·truncated·by·diffoscope;·len:·78,·SHA:·e5a277eb71f072a8711aefdffff2759553dce1ba2a3fef9ec38a068769dda8a2·...·]/core/iter/adapters/zip/struct.Zip.html"·title="struct·core::iter::adapters::zip::Zip">Zip</a>&lt;A,·B&gt;<div·class="where">where
169 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,169 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
170 ····B:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="enum"·href="../borrow/enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·B&gt;<div·class="where">where170 ····B:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="enum"·href="../borrow/enum.Cow.html"·title="enum·alloc::borrow::Cow">Cow</a>&lt;'_,·B&gt;<div·class="where">where
171 ····B:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&lt;Owned:·<a·class="trait"·href="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><section·id="impl-Debug-for-ControlFlow%3CB,+C%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.55.0">1.55.0[·...·truncated·by·diffoscope;·len:·315,·SHA:·aeebdc7e9b84cd24e32087378980e9ef9d792425076d7e551202a99d6e1b55b2·...·]/core/ops/control_flow/enum.ControlFlow.html"·title="enum·core::ops::control_flow::ControlFlow">ControlFlow</a>&lt;B,·C&gt;<div·class="where">where171 ····B:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="../borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>&lt;Owned:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>&gt;·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Debug-for-ControlFlow%3CB,+C%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·[·...·truncated·by·diffoscope;·len:·396,·SHA:·82932ca0baf1ca0403f37e4a2c947f5bc87d6087f5d30d3a97613beb67b72c2a·...·]/core/ops/control_flow/enum.ControlFlow.html"·title="enum·core::ops::control_flow::ControlFlow">ControlFlow</a>&lt;B,·C&gt;<div·class="where">where
172 ····B:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,172 ····B:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
173 ····C:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-DynMetadata%3CDyn%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/ptr/metadata.rs.html#212">source</a><a·href="#impl-Debug-for-DynMetadata%3CDyn%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;Dyn&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="s[·...·truncated·by·diffoscope;·len:·18,·SHA:·86646737a613066e099c84de8897dc4c674dc2ad259a7a45e8d5fd871507e29a·...·]/core/ptr/metadata/struct.DynMetadata.html"·title="struct·core::ptr::metadata::DynMetadata">DynMetadata</a>&lt;Dyn&gt;<div·class="where">where173 ····C:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-DynMetadata%3CDyn%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/ptr/metadata.rs.html#212">source</a><a·href="#impl-Debug-for-DynMetadata%3CDyn%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;Dyn&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug[·...·truncated·by·diffoscope;·len:·72,·SHA:·488adbff58c639f26487d04c145a541a28054f6b5ccd914ff392e0d2fd415529·...·]/core/ptr/metadata/struct.DynMetadata.html"·title="struct·core::ptr::metadata::DynMetadata">DynMetadata</a>&lt;Dyn&gt;<div·class="where">where
 174 ····Dyn:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Debug-for-CharPredicateSearcher%3C'_,+F%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#886-888">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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="../str/pattern/struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'_,·F&gt;<div·class="where">where
174 ····Dyn:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Debug-for-PollFn%3CF%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·v[·...·truncated·by·diffoscope;·len:·2823,·SHA:·47cf01fb8d9d43eb10d8da04de16ec76ad1b8bf343dedead82cb8e856751583d·...·]F&gt;<div·class="where">where175 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.char.html">char</a>)·-&gt;·<a·class[·...·truncated·by·diffoscope;·len:·3208,·SHA:·b9b8b42102811cf4e36bff8bacaf771918f6054428134256e3b607bbf0d36ad1·...·]F&gt;<div·class="where">where
175 ····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></section><section·id="impl-Debug-for-FromFn%3CF%3E-1"·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-1"·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·alloc::fmt::<a·class="struct"·href="struct.FromFn.html"·title="struct·alloc::fmt::FromFn">FromFn</a>&lt;F&gt;<div·class="where">where 
176 ····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:·405,·SHA:·8a151915d5c85716b89f964ca3f9a3f6dbb06de3cbaa02e15723cc51ac8a7d73·...·]/src/core/ptr/mod.rs.html#2265">source</a></span><a·href="#impl-Debug-for-F"·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·F<div·class="where">where176 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·513,·SHA:·3a8641646158d89ec387a5d9e2971c2bfad540057763df8a17b05d1ddb0ec7f8·...·]/src/core/ptr/mod.rs.html#2265">source</a></span><a·href="#impl-Debug-for-F"·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·F<div·class="where">where
177 ····F:·<a·class="trait"·href="../../core/marker/trait.FnPtr.html"·title="trait·core::marker::FnPtr">FnPtr</a>,</div></h3></section><section·id="impl-Debug-for-BuildHasherDefault%3CH%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.9.0">1.9[·...·truncated·by·diffoscope;·len:·811,·SHA:·d82341c3c0ffff9f1d1418ade927d3a4657f74d3ecdb8af9ab298acf65ca4050·...·]/core/async_iter/from_iter/struct.FromIter.html"·title="struct·core::async_iter::from_iter::FromIter">FromIter</a>&lt;I&gt;<div·class="where">where177 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.FnPtr.html"·title="trait·core::marker::FnPtr">FnPtr</a>,</div></h3></section><section·id="impl-Debug-for-BuildHasherDefault%3CH%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·si[·...·truncated·by·diffoscope;·len:·946,·SHA:·eaea2b525fa3b3d8337ff8a0faa02222eb9939d96fdf1f699c94d0934fc75f40·...·]/core/async_iter/from_iter/struct.FromIter.html"·title="struct·core::async_iter::from_iter::FromIter">FromIter</a>&lt;I&gt;<div·class="where">where
178 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-DecodeUtf16%3CI%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/char/decode.rs.html#14">source</a></span><a·href="#impl-Debug-for-DecodeUtf16%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="[·...·truncated·by·diffoscope;·len:·19,·SHA:·1ccc7a9b344cfd723c78ecbcf0a97e4067d48dc2be9d0f701905bc6682e4278e·...·]/core/char/decode/struct.DecodeUtf16.html"·title="struct·core::char::decode::DecodeUtf16">DecodeUtf16</a>&lt;I&gt;<div·class="where">where178 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-DecodeUtf16%3CI%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.83.0/src/core/char/decode.rs.html#14">source</a></span><a·href="#impl-Debug-for-DecodeUtf16%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debu[·...·truncated·by·diffoscope;·len:·73,·SHA:·7abd7902516d088687e6689f23147dc6c91c6a523d9183dbbc9a867cc7bdece2·...·]/core/char/decode/struct.DecodeUtf16.html"·title="struct·core::char::decode::DecodeUtf16">DecodeUtf16</a>&lt;I&gt;<div·class="where">where
179 ····I:·<a·class="trait"·href="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>&lt;Item·=·<a·class="primitive"·href="../../core/primitive.u16.html">u16</a>&gt;,</div></h3></section><section·id="impl-Debug-for-Cloned%3[·...·truncated·by·diffoscope;·len:·419,·SHA:·aaf2755df411049cd99a21dc10cdb9de53001c754a73e8a7622db98b3873e6b5·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;I&gt;<div·class="where">where179 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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.83.0/core/primitive.u16.html">u16</a>&gt;,</d[·...·truncated·by·diffoscope;·len:·527,·SHA:·ba6ed4209d8fdd6f015c667c2dd6d6c7264ecc84ba2b1fdcf3340cffdf78334c·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;I&gt;<div·class="where">where
180 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Copied%3CI%3E"·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/core/iter/adapters/copied.rs.html#18">source</a></span><a·href="#impl-Debug-for-Copied%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·cla[·...·truncated·by·diffoscope;·len:·23,·SHA:·e3f863511e2ab844799141e0c6a9bc2f708dabe1fe37ce3ae7ed928b67f65ee1·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;I&gt;<div·class="where">where180 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Copied%3CI%3E"·class="impl"><span·class="rightside"><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.83.0/src/core/iter/adapters/copied.rs.html#18">source</a></span><a·href="#impl-Debug-for-Copied%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::[·...·truncated·by·diffoscope;·len:·77,·SHA:·ed96214d70541dd3e2f212a8884c3be5c3cb1a887363044162c98979e9549559·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;I&gt;<div·class="where">where
181 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Cycle%3CI%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/iter/adapters/cycle.rs.html#12">source</a></span><a·href="#impl-Debug-for-Cycle%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class[·...·truncated·by·diffoscope;·len:·21,·SHA:·8f1a310af209d0f9b2c3aa8ac6596e8251b9580183fbf6bef54cfdfb105d5965·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;I&gt;<div·class="where">where181 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Cycle%3CI%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.83.0/src/core/iter/adapters/cycle.rs.html#12">source</a></span><a·href="#impl-Debug-for-Cycle%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::De[·...·truncated·by·diffoscope;·len:·75,·SHA:·fcf7b3b172b4be8950e9d32fee31eebbccf59073225c54df1a79ba79b7c0d8fd·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;I&gt;<div·class="where">where
182 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Enumerate%3CI%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/iter/adapters/enumerate.rs.html#14">source</a></span><a·href="#impl-Debug-for-Enumerate%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·[·...·truncated·by·diffoscope;·len:·29,·SHA:·f42299b496ed6ce79be9ceef4d2ea4b698f0d9044b56576d83ab06deebff7c74·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;I&gt;<div·class="where">where182 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Enumerate%3CI%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.83.0/src/core/iter/adapters/enumerate.rs.html#14">source</a></span><a·href="#impl-Debug-for-Enumerate%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc:[·...·truncated·by·diffoscope;·len:·83,·SHA:·aaaedd2690da1f5c77d6cb6980bb7cedce9caffa75e98d8ceaaf3d6250786cd5·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;I&gt;<div·class="where">where
183 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Fuse%3CI%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/iter/adapters/fuse.rs.html#14">source</a></span><a·href="#impl-Debug-for-Fuse%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="[·...·truncated·by·diffoscope;·len:·19,·SHA:·1ccc7a9b344cfd723c78ecbcf0a97e4067d48dc2be9d0f701905bc6682e4278e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;I&gt;<div·class="where">where183 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Fuse%3CI%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.83.0/src/core/iter/adapters/fuse.rs.html#14">source</a></span><a·href="#impl-Debug-for-Fuse%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debu[·...·truncated·by·diffoscope;·len:·73,·SHA:·7abd7902516d088687e6689f23147dc6c91c6a523d9183dbbc9a867cc7bdece2·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;I&gt;<div·class="where">where
184 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Intersperse%3CI%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/iter/adapters/intersperse.rs.html#9">source</a><a·href="#impl-Debug-for-Intersperse%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·c[·...·truncated·by·diffoscope;·len:·25,·SHA:·915246b5e79d4ebd991c4c2c48ff27c1349907882fd6e9fd65c91e406008405b·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;I&gt;<div·class="where">where184 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Intersperse%3CI%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/iter/adapters/intersperse.rs.html#9">source</a><a·href="#impl-Debug-for-Intersperse%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt[·...·truncated·by·diffoscope;·len:·79,·SHA:·c1e66adb43364c0598963bb984b52b1d1962ff42496afb74986e6d64bd176966·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;I&gt;<div·class="where">where
185 ····I:·<a·class="trait"·href="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>,185 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>,
186 ····&lt;I·as·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>&gt;::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::tra[·...·truncated·by·diffoscope;·len:·709,·SHA:·33b4c11fea2332eca3c44dcea2c24f6dbf1a3e5009aecce594a265d09a66179a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;I&gt;<div·class="where">where186 ····&lt;I·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator[·...·truncated·by·diffoscope;·len:·844,·SHA:·cf95a37f1ee14f9f4e2e84d2e7d212ab58e9666993f207ba924e515e5ccb56db·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;I&gt;<div·class="where">where
187 ····I:·<a·class="trait"·href="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>,187 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>,
188 ····&lt;I·as·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>&gt;::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::tra[·...·truncated·by·diffoscope;·len:·594,·SHA:·ece3ede97be6def2b676f08c1d3db913d242a25c414183731a2e8a767c59bfac·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;I&gt;<div·class="where">where188 ····&lt;I·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator[·...·truncated·by·diffoscope;·len:·702,·SHA:·7b865928329b8affa823baeec8d4456d7b361372bf497f6a40e913889f3ba3bd·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;I&gt;<div·class="where">where
189 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-StepBy%3CI%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/core/iter/adapters/step_by.rs.html#15">source</a></span><a·href="#impl-Debug-for-StepBy%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·cl[·...·truncated·by·diffoscope;·len:·24,·SHA:·a484d240ae7654847a266b06e2b0fb5e758035e3b44a1c3e243655765c98e723·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;I&gt;<div·class="where">where189 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-StepBy%3CI%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="https://doc.rust-lang.org/1.83.0/src/core/iter/adapters/step_by.rs.html#15">source</a></span><a·href="#impl-Debug-for-StepBy%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt:[·...·truncated·by·diffoscope;·len:·78,·SHA:·e5a277eb71f072a8711aefdffff2759553dce1ba2a3fef9ec38a068769dda8a2·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;I&gt;<div·class="where">where
190 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Take%3CI%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/iter/adapters/take.rs.html#14">source</a></span><a·href="#impl-Debug-for-Take%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="[·...·truncated·by·diffoscope;·len:·19,·SHA:·1ccc7a9b344cfd723c78ecbcf0a97e4067d48dc2be9d0f701905bc6682e4278e·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;I&gt;<div·class="where">where190 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Take%3CI%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.83.0/src/core/iter/adapters/take.rs.html#14">source</a></span><a·href="#impl-Debug-for-Take%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debu[·...·truncated·by·diffoscope;·len:·73,·SHA:·7abd7902516d088687e6689f23147dc6c91c6a523d9183dbbc9a867cc7bdece2·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;I&gt;<div·class="where">where
191 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-FilterMap%3CI,+F%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/iter/adapters/filter_map.rs.html#29">source</a></span><a·href="#impl-Debug-for-FilterMap%3CI,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·F&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</[·...·truncated·by·diffoscope;·len:·36,·SHA:·a50270b44cd19d20e8d5fa4a25d6a0d9fac0f05603474b0340433bd801ba02f2·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;I,·F&gt;<div·class="where">where191 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-FilterMap%3CI,+F%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.83.0/src/core/iter/adapters/filter_map.rs.html#29">source</a></span><a·href="#impl-Debug-for-FilterMap%3CI,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·F&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait[·...·truncated·by·diffoscope;·len:·90,·SHA:·63ba4f0d3c72cbdf2ddece9a691e19c1aff54fc9e80f77e6fdbe02b404427903·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;I,·F&gt;<div·class="where">where
192 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Inspect%3CI,+F%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/iter/adapters/inspect.rs.html#29">source</a></span><a·href="#impl-Debug-for-Inspect%3CI,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·F&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·fo[·...·truncated·by·diffoscope;·len:·31,·SHA:·de7eb6c760b6bfbd97406792b411f1fb233f2879869bf1077ee1fdd69a0e8c06·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;I,·F&gt;<div·class="where">where192 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Inspect%3CI,+F%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.83.0/src/core/iter/adapters/inspect.rs.html#29">source</a></span><a·href="#impl-Debug-for-Inspect%3CI,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·F&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·allo[·...·truncated·by·diffoscope;·len:·85,·SHA:·fd11acda08fd3c0997a280a140548d2313994aaf16b9b0eee4d372c9f6a45926·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;I,·F&gt;<div·class="where">where
193 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Map%3CI,+F%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/iter/adapters/map.rs.html#78">source</a></span><a·href="#impl-Debug-for-Map%3CI,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·F&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·cla[·...·truncated·by·diffoscope;·len:·23,·SHA:·e3f863511e2ab844799141e0c6a9bc2f708dabe1fe37ce3ae7ed928b67f65ee1·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;I,·F&gt;<div·class="where">where193 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Map%3CI,+F%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.83.0/src/core/iter/adapters/map.rs.html#78">source</a></span><a·href="#impl-Debug-for-Map%3CI,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·F&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::[·...·truncated·by·diffoscope;·len:·77,·SHA:·ed96214d70541dd3e2f212a8884c3be5c3cb1a887363044162c98979e9549559·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;I,·F&gt;<div·class="where">where
194 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-MapWindows%3CI,+F,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/iter/adapters/map_windows.rs.html#275">source</a><a·href="#impl-Debug-for-MapWindows%3CI,+F,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·F,·const·N:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>&gt;·<[·...·truncated·by·diffoscope;·len:·115,·SHA:·9e9de83788de116ac030f76e09c499336288b5acc629a34a94ce12a963cf24cb·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;I,·F,·N&gt;<div·class="where">where194 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-MapWindows%3CI,+F,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/iter/adapters/map_windows.rs.html#275">source</a><a·href="#impl-Debug-for-MapWindows%3CI,+F,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·F,·const·N:·<a·class="primitive"·href="https://doc.rust-lang[·...·truncated·by·diffoscope;·len:·196,·SHA:·8fe837549c75861e91f036085cbcc7f248b6725d477f976fe615623af37b2f44·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;I,·F,·N&gt;<div·class="where">where
195 ····I:·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·+·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Int[·...·truncated·by·diffoscope;·len:·365,·SHA:·ffe844df88525417a5a7051f8d2d2843eb256adb43a2ff80a519842d525d0e36·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;I,·G&gt;<div·class="where">where195 ····I:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·+·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><sec[·...·truncated·by·diffoscope;·len:·446,·SHA:·3b7fc6922e94ad793db9775e85f8e643af58dde9e6fb0f3e07ccefcd9c7f026a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;I,·G&gt;<div·class="where">where
196 ····I:·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·+·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,196 ····I:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·+·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
197 ····&lt;I·as·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>&gt;::<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="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,197 ····&lt;I·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
198 ····G:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Filter%3CI,+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/iter/adapters/filter.rs.html#69">source</a></span><a·href="#impl-Debug-for-Filter%3CI,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·[·...·truncated·by·diffoscope;·len:·29,·SHA:·f42299b496ed6ce79be9ceef4d2ea4b698f0d9044b56576d83ab06deebff7c74·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;I,·P&gt;<div·class="where">where198 ····G:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Filter%3CI,+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.83.0/src/core/iter/adapters/filter.rs.html#69">source</a></span><a·href="#impl-Debug-for-Filter%3CI,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc:[·...·truncated·by·diffoscope;·len:·83,·SHA:·aaaedd2690da1f5c77d6cb6980bb7cedce9caffa75e98d8ceaaf3d6250786cd5·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;I,·P&gt;<div·class="where">where
199 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-MapWhile%3CI,+P%3E"·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/core/iter/adapters/map_while.rs.html#29">source</a></span><a·href="#impl-Debug-for-MapWhile%3CI,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>[·...·truncated·by·diffoscope;·len:·34,·SHA:·2fe76a57132ebd5c951fed046ef4eb014f4beaa339735f59c1ea7cc534406a7f·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;I,·P&gt;<div·class="where">where199 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-MapWhile%3CI,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.83.0/src/core/iter/adapters/map_while.rs.html#29">source</a></span><a·href="#impl-Debug-for-MapWhile%3CI,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·a[·...·truncated·by·diffoscope;·len:·88,·SHA:·d84cdf7d2a026d926d84f2ee48a7cc64cadcb807b3e648855efa9b7802c2114e·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;I,·P&gt;<div·class="where">where
200 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-SkipWhile%3CI,+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/iter/adapters/skip_while.rs.html#30">source</a></span><a·href="#impl-Debug-for-SkipWhile%3CI,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</[·...·truncated·by·diffoscope;·len:·36,·SHA:·a50270b44cd19d20e8d5fa4a25d6a0d9fac0f05603474b0340433bd801ba02f2·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;I,·P&gt;<div·class="where">where200 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-SkipWhile%3CI,+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.83.0/src/core/iter/adapters/skip_while.rs.html#30">source</a></span><a·href="#impl-Debug-for-SkipWhile%3CI,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait[·...·truncated·by·diffoscope;·len:·90,·SHA:·63ba4f0d3c72cbdf2ddece9a691e19c1aff54fc9e80f77e6fdbe02b404427903·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;I,·P&gt;<div·class="where">where
201 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-TakeWhile%3CI,+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/iter/adapters/take_while.rs.html#30">source</a></span><a·href="#impl-Debug-for-TakeWhile%3CI,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</[·...·truncated·by·diffoscope;·len:·36,·SHA:·a50270b44cd19d20e8d5fa4a25d6a0d9fac0f05603474b0340433bd801ba02f2·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;I,·P&gt;<div·class="where">where201 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-TakeWhile%3CI,+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.83.0/src/core/iter/adapters/take_while.rs.html#30">source</a></span><a·href="#impl-Debug-for-TakeWhile%3CI,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·P&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait[·...·truncated·by·diffoscope;·len:·90,·SHA:·63ba4f0d3c72cbdf2ddece9a691e19c1aff54fc9e80f77e6fdbe02b404427903·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;I,·P&gt;<div·class="where">where
202 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Scan%3CI,+St,+F%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/iter/adapters/scan.rs.html#30">source</a></span><a·href="#impl-Debug-for-Scan%3CI,+St,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·St,·F&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·[·...·truncated·by·diffoscope;·len:·33,·SHA:·e26f4ff75d20cf6aeb3837994e7501dec04bca8f697ac7487ae8ea6a8d6ccdbb·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;I,·St,·F&gt;<div·class="where">where202 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Scan%3CI,+St,+F%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.83.0/src/core/iter/adapters/scan.rs.html#30">source</a></span><a·href="#impl-Debug-for-Scan%3CI,+St,+F%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·St,·F&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·al[·...·truncated·by·diffoscope;·len:·87,·SHA:·f6e7ac62a662b9f7e25acbac0a99fbd37d66a1891a2ae54e68b6b9216dddc935·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;I,·St,·F&gt;<div·class="where">where
203 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,203 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
Max diff block lines reached; 202983/516679 bytes (39.29%) of diff not shown.
25.0 KB
html2text {}
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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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#724">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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.83.0/src/core/fmt/mod.rs.html#724">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="../../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;;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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·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="../../src/core/fmt/mod.rs.html#749">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>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.83.0/src/core/fmt/mod.rs.html#749">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:·cb0e1d22e10198f6ac40e253f17f1b1a01ba0172b369259e5c3c312f215a9a39·...·]/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="../../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>.42 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.83.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:·e842551e8cffe04acae8f10b8b6fc7337d013d2a4666005749f99045b11d7f74·...·]/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="../../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:·a06674fbac8e38ba83fe8211ba0435f9eef62cad9ae81cad5c2029339ce9a995·...·]/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="https://doc.rust-lang.org/1.83.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:·28662,·SHA:·4c1ef9ede648181150ae87b7429c561a6408cbee8328f75ba02a457a03f4c1e4·...·]/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="../../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:·16081,·SHA:·e7d0d844c2876453a1dd951af9b7caf5ba38d1680b3814042014f61c4175e9b1·...·]/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="https://doc.rust-lang.org/1.83.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:·7ea6cd53a4f2064349002188d728255c9efb064b4fdca65c85423b171ce30607·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.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">where
69 ····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:·469b11bff4b1cb5df0fec68bda0c85e638f38702e2f5de4624f28f566fbc6f8d·...·]/core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;Ptr&gt;<div·class="where">where69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·3bcc6ce234d51e1f01de7c1ea6ffeb4cef67c1e3c9da81b65be8303613c814f0·...·]/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="../../src/core/fmt/mod.rs.html#2400">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">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="https://doc.rust-lang.org/1.83.0/src/core/fmt/mod.rs.html#2400">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:·533f0e2bd058a479e20133be12d896beaa2f33abe7256056d8c3ee7289f6f6e3·...·]/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="../../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:·06f3bf0af45ff18e872fbfb651601b5bf17ee79970718fb9ef21ddbb5c19fad6·...·]/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="https://doc.rust-lang.org/1.83.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:·1f499794d2daef51e1515bf0056f2e8486cd7affa0a7a0e48a10d60b93e727b5·...·]/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="../../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:·31c3a0f79985a3ffd725cb0248b098f36e6f230442bbad9445be329d59d67d2a·...·]/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="https://doc.rust-lang.org/1.83.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:·cf2067916d5cfa084dd8e706d92e79034f06866de4a4b18a2f1a7085cfbab6ce·...·]/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="../../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:·42554954165df692ea45bd9fd2b5d7727f64d8fb1e48c9a7010983e829527a1c·...·]/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="https://doc.rust-lang.org/1.83.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:·bb4f1f3d647160120a26cdf56d6c0ebbb69eb73eecb4ff5485c9d426e11c251f·...·]/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="../../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:·306,·SHA:·705917cf0825054c5f51e00703db29a995195598e6f5450ed231ceba91eda479·...·]/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="https://doc.rust-lang.org/1.83.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:·387,·SHA:·3387768536525e2ce2f0cb7a9889d88bdfc2b71447c43c6dc65e2e2a2d2c46d8·...·]/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="../../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:·925d3c450ebfcf3c915ba505d9830f26ce757e94ab7b2eb576a9835412527e9f·...·]/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="https://doc.rust-lang.org/1.83.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:·86448e8e90a190ce499829a23b8ab262d61a874b2f68f1c35fef30df7538ebce·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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:·b572aa83eb22cc03fb75257c95e7a0aca6a966809daabe454d2a85c31d56ecd3·...·]/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#2339-2343">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:·07e807307b78a15d1eb53e65c71ec9c6cb6e5be5aff3cd7edf6c2fdc40a59558·...·]/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#2339-2343">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.83.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:·52bbd2f56e26f14d56381cf42f9a4f030bc0a8e3ea78c9d3b41f14d35e027286·...·]/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
31.2 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#1079">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.0/src/core/fmt/mod.rs.html#1079">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="../../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;;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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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, 16 lines modifiedOffset 30, 16 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="../../src/core/fmt/mod.rs.html#1082">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>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.83.0/src/core/fmt/mod.rs.html#1082">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:·2be08105e5496c633d1070d3496a2ee351121556da2cc198c26f05bc74cfb009·...·]/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="../../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 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.83.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:·e842551e8cffe04acae8f10b8b6fc7337d013d2a4666005749f99045b11d7f74·...·]/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="../../src/core/fmt/float.rs.html#230">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:·6823,·SHA:·3d3e65fc6fa8870fdc1d10add2f41075071ef49700f993a59c9c9be76de4161b·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/fmt/float.rs.html#230">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:·7633,·SHA:·08c6e1d3923f9e963524da415ca9b28ff77177800a90f5e34c76423dbc87b738·...·]/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="../../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:·47fa4aaa89dd222de518b5c7e11508bc31c06ec31bfacdcc7c8a027ce1412280·...·]/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="https://doc.rust-lang.org/1.83.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:·1d670a4d40d3e7686c681a9c4bea7050130627d960350fbc54d384d3fdace800·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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>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.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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.5 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#914">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.0/src/core/fmt/mod.rs.html#914">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="../../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;;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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../src/core/fmt/mod.rs.html#917">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 </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.83.0/src/core/fmt/mod.rs.html#917">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:·cb0e1d22e10198f6ac40e253f17f1b1a01ba0172b369259e5c3c312f215a9a39·...·]/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="../../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 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.83.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:·e842551e8cffe04acae8f10b8b6fc7337d013d2a4666005749f99045b11d7f74·...·]/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="../../src/core/fmt/num.rs.html#176">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:·5f4fa579c1247d5573743ca9dc9355d3b05797f372a63670b9c0a531d2112042·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/fmt/num.rs.html#176">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:·1efa42cdcf9e15c3c4c1c147c3616f5048f163122882a8836f21e0464c6a1e83·...·]/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="../../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:·7cf56739ee9dfbcd897067aaedd35090509e5a75e64634bd9f7e868b4840ff9a·...·]/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="https://doc.rust-lang.org/1.83.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:·bd1118c49a1939b3e1d18a8354d5f3057aa823f7029684dcd1cf30e8e553af40·...·]/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="../../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:·311,·SHA:·5a1c23d00f1304d069ed3f5710332316133f45a1678d95979d7443aa593d4dbf·...·]/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="https://doc.rust-lang.org/1.83.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:·392,·SHA:·3d1f976acc515bfa6beacdb97caddbbeadf2af1140754ed029fe79af445ad59e·...·]/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="../../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:·9af17d6ac0e80a81dfc2dda10ad425d5a061f74f627afc6e4007bf25d5fe8651·...·]/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="https://doc.rust-lang.org/1.83.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:·acdc1c363d80d627ffb93ee270e0817bf0c02e245e17600f208bcd88d4eb34ea·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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:·5ea339aa9ce6d8de62967622b5531fea764615a3bdd4dff4ab6b4829588ce0a2·...·]/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.9 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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#800">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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.83.0/src/core/fmt/mod.rs.html#800">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="../../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;;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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../src/core/fmt/mod.rs.html#803">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>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.83.0/src/core/fmt/mod.rs.html#803">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:·cb0e1d22e10198f6ac40e253f17f1b1a01ba0172b369259e5c3c312f215a9a39·...·]/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="../../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>.37 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.83.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:·e842551e8cffe04acae8f10b8b6fc7337d013d2a4666005749f99045b11d7f74·...·]/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="../../src/core/fmt/num.rs.html#176">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:·73dc5044b00f6cc448a86d5fd523f9825083c2224a50a85879b46d497a6211c4·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/fmt/num.rs.html#176">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:·7ed80ec58c7098d57f13cd03e4898ba21d844a6f416d7e40359e1eb7d1123b12·...·]/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="../../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:·ad53efe92fa20e943e7b8af91cbd91e696e490f5cb2686ac7ab5d795fd1e6109·...·]/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="https://doc.rust-lang.org/1.83.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:·82df50bff9be78f4e387b2ae25112db25ef988d1b0831db363ab91dc22f85141·...·]/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="../../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:·296,·SHA:·8301f1a3de1e63a90a6698441792315ef9045ad2e3031650cc4a94ee97110660·...·]/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="https://doc.rust-lang.org/1.83.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:·377,·SHA:·56ef360a2a4fe8e642763aa837fd88a66b95b0acc7ea2f1e1eb5ec68f4162dd9·...·]/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="../../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:·58cc335ffb8ac1cf6b67c2c95cf255321dd99e6629b02066dc51ed1533c72760·...·]/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="https://doc.rust-lang.org/1.83.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:·080be5812d3fdaa82b50f6f0def176a2d59a67af8dafb20b4ffd08612b155c35·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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:·aa2396113d327636c00d375ed3f64c0a09e11e9c0e4173719d1556855fe31652·...·]/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.4 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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#1028">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.0/src/core/fmt/mod.rs.html#1028">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="../../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;;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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../src/core/fmt/mod.rs.html#1031">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>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.83.0/src/core/fmt/mod.rs.html#1031">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:·2be08105e5496c633d1070d3496a2ee351121556da2cc198c26f05bc74cfb009·...·]/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="../../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>.42 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.83.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:·e842551e8cffe04acae8f10b8b6fc7337d013d2a4666005749f99045b11d7f74·...·]/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="../../src/core/ptr/mod.rs.html#2258">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="https://doc.rust-lang.org/1.83.0/src/core/ptr/mod.rs.html#2258">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="../../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:·7c89d77392bc85c37ebb490c58fde82dd5710489d5052d8f065c19eb8cb0676e·...·]/core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;Ptr&gt;<div·class="where">where47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·3541cb7de92f3d51971da220cf6008ee896f6e94f982eb11c30be3e1032cb8ea·...·]/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="../../src/core/fmt/mod.rs.html#2515">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">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="https://doc.rust-lang.org/1.83.0/src/core/fmt/mod.rs.html#2515">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:·e43a136f9650f98cfd0454cb80c07ff30cddec36454d5727eb2c68f5433c072b·...·]/core/primitive.pointer.html">*const·T</a><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><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:·07be84da92e5a1146236e6608f41e684090c8e78b7f1b30353138dcf6a413fdc·...·]/core/primitive.pointer.html">*mut·T</a><div·class="where">where49 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·54e11307a86f818b3e49bc0fa4791862ad45611b68ab5de39f5c18b858fe3d50·...·]/core/primitive.pointer.html">*mut·T</a><div·class="where">where
50 ····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:·53b87e74da2759a0ecda9f5c65466a85735e1d37b55163ae3bf9f1aef78e7f44·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where50 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·8cdc0cfebc0a0ad077504196f526ff27917398c916d69272d27a5ec3ea1f6b41·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
51 ····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:·61048953f78ae765de5777b30a98b72d8ebe9e6f8e36cbbce3870b5f9c936796·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where51 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·1c4b887b7867c28c0c76e8e4f926c69d0c219bb75929943e422874851cc96665·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
52 ····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:·72fc8f5e62e3020630f3a5e6014ae52a487ce59ad9b644753c8216ec3a550255·...·]/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="https://doc.rust-lang.org/1.83.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:·7165c6d7fd87d2641969f6130703e3edb050c1e21a9a62db7907301c33fca103·...·]/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="../../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:·99d4fe25f62eff4b21e348176fc6dcc015da43206b11c1d893bd8ab701a8940f·...·]/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="https://doc.rust-lang.org/1.83.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:·c917b2414968fa61f4998c8b406951f3cd6b9dde6e05c11cf723bfce8b9b4076·...·]/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>
31.2 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#1130">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.0/src/core/fmt/mod.rs.html#1130">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="../../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;;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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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, 16 lines modifiedOffset 30, 16 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="../../src/core/fmt/mod.rs.html#1133">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>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.83.0/src/core/fmt/mod.rs.html#1133">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:·2be08105e5496c633d1070d3496a2ee351121556da2cc198c26f05bc74cfb009·...·]/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="../../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 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.83.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:·e842551e8cffe04acae8f10b8b6fc7337d013d2a4666005749f99045b11d7f74·...·]/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="../../src/core/fmt/float.rs.html#230">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:·6823,·SHA:·f453822843eb387eb815ff51842f961952d363ac3d01563a038e59e6458328fd·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/fmt/float.rs.html#230">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:·7633,·SHA:·0503ea5452b57dd3714d9682ed124449918012fc8a518f149e24200e729b5339·...·]/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="../../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:·82279d43421b6add17f10b950dc2a8b7c3259e9d886d1d9034320070f16f61c3·...·]/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="https://doc.rust-lang.org/1.83.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:·91f3759a79177338adae02d9a97b12d938b80bef9700383dedae2cf18e9e46d3·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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>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.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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.5 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#969">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.0/src/core/fmt/mod.rs.html#969">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="../../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;;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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../src/core/fmt/mod.rs.html#972">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 </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.83.0/src/core/fmt/mod.rs.html#972">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:·cb0e1d22e10198f6ac40e253f17f1b1a01ba0172b369259e5c3c312f215a9a39·...·]/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="../../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 <p>This·function·should·return·<a·href="https://doc.rust-lang.org/1.83.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:·e842551e8cffe04acae8f10b8b6fc7337d013d2a4666005749f99045b11d7f74·...·]/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="../../src/core/fmt/num.rs.html#176">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:·073156fd572a9bd304d3f0dfcf57e2c016dafa15f88e20ad57d31c5a51f104ab·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/fmt/num.rs.html#176">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:·fc89ee401f278a964ad1cff99770e52ef705952fdbc8df51ed70af46293f034e·...·]/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="../../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:·8a0113a6e6d886209dd9dcff68a6fd509081df8e4db13e7151968a9f22d0d4ca·...·]/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="https://doc.rust-lang.org/1.83.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:·b76bdfdb17b5046afde226a9980d4addf86ca00841c277c3d92837f2e266e7f7·...·]/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="../../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:·311,·SHA:·e4abb35abaad44b70c4f48a163af050ed6c4180d075ca8c1ce73a3d2a7c303f3·...·]/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="https://doc.rust-lang.org/1.83.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:·392,·SHA:·07c8269324955adf1be6f3a1a973c25bb53aad61f572f06906c266b44d1523e8·...·]/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="../../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:·59788c43ab12dc86b2afd559479a393eb7d6d9229c14cf7de6455f2a859f6411·...·]/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="https://doc.rust-lang.org/1.83.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:·6a52551a28a205d1f6f16b27f2377d127dea34cc424e68547d644dfbf692999d·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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:·9c54a74cd8c33e134e9b1c776f53d9636f6174191e80a2d46ff87d537daa30b7·...·]/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.8 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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·{1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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.83.0/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="../../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;;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.83.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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:·0460a5830e30d80b3ae48dbc71a9c91e7b4f0428e31a23c56840666a21829299·...·]/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="../../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;·{·...·}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.83.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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:·46d855ebc1fec9181afa81aab9a629b6ad3059ec34f3a6d691bbcbf1e7d9c2bc·...·]/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;·{·...·}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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../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·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="https://doc.rust-lang.org/1.83.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.83.0/core/primit[·...·truncated·by·diffoscope;·len:·221,·SHA:·1e1e06d387b0995dd577fec21034e0542cd3d19b44f0e9f9f2a8e64449d6cf1f·...·]/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="../../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>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.83.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.83.0/core/primitive.c[·...·truncated·by·diffoscope;·len:·442,·SHA:·1170d3c370275b4eda4a4bb8614bffa1343d1d7293a8af7862621ac3635d2df7·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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>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.83.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:·0af2b6c210a304b21e9afd08dcacfea51711f7efe3f206e6d51361a2d1e98ed2·...·]/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="../../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·itself.</p>53 the·<a·href="https://doc.rust-lang.org/1.83.0/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#3078-3090">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#2357">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:·f15fa2944fb70933de11ce672ec203ea614603ae3b572712b09aee109107ea2d·...·]/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#3078-3090">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.83.0/src/core/fmt/mod.rs.html#2357">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:·8d3111901e1065b8df8b2092ae65625aa5c3685e0bbe6787b8e1cd14f344dadc·...·]/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="../../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="https://doc.rust-lang.org/1.83.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>
11.7 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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.83.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.83.0/core/result/enum.Result.html"·title="enum·core::result::Result"[·...·truncated·by·diffoscope;·len:·74,·SHA:·bdf47ea8e7d5ea7191a9e5182d4655901dfbfd032026574efabd18fa61336866·...·]/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="../../core/primitive.unit.html">()</a>),20 ····Ok(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../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="https://doc.rust-lang.org/1.83.0/core/cell/index.html"·title="mod·core::cell"><code>Cell</code></a>·or
21 <a·href="../core/cell/index.html"·title="mod·core::cell"><code>RefCell</code></a>·types·in·order·to·allow·mutation.</p>21 <a·href="https://doc.rust-lang.org/1.83.0/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="../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="https://doc.rust-lang.org/1.83.0/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="../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="https://doc.rust-lang.org/1.83.0/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="../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="https://doc.rust-lang.org/1.83.0/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="../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="https://doc.rust-lang.org/1.83.0/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.
16.5 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="../sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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-3825">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="../sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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-3825">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="../../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="https://doc.rust-lang.org/1.83.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·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="../../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="https://doc.rust-lang.org/1.83.0/core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>
11 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·mutability11 or·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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,
Offset 202, 8 lines modifiedOffset 202, 8 lines modified
202 ····//·are·destroyed.·There·are·now·no·strong·(`Rc`)·pointers·to·the202 ····//·are·destroyed.·There·are·now·no·strong·(`Rc`)·pointers·to·the
203 ····//·gadgets,·so·they·are·destroyed.·This·zeroes·the·reference·count·on203 ····//·gadgets,·so·they·are·destroyed.·This·zeroes·the·reference·count·on
204 ····//·Gadget·Man,·so·he·gets·destroyed·as·well.204 ····//·Gadget·Man,·so·he·gets·destroyed·as·well.
205 </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_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Ause+std::rc::Rc;%0Ause+std::rc::Weak;%0Ause+std::cell::RefCell;%0A%0Astruct+Owner+%7B%0A++++name:+String,%0A++++gadgets:+RefCell%3CVec%3CWeak%3CGadget%3E%3E%3E,%0A++++//+...other+fields%0A%7D%0A%0Astruct+Gadget+%7B%0A++++id:+i32,%0A++++owner:+Rc%3COwner%3E,%0A++++//+...other+fields%0A%7D%0A%0Afn+main()+%7B%0A++++//+Create+a+reference-counted+%60Owner%60.+Note+that+we've+put+the+%60Owner%60's%0A++++//+vector+of+%60Gadget%60s+inside+a+%60RefCell%60+so+that+we+can+mutate+it+through%0A++++//+a+shared+reference.%0A++++let+gadget_owner:+Rc%3COwner%3E+=+Rc::new(%0A++++++++Owner+%7B%0A++++++++++++name:+%22Gadget+Man%22.to_string(),%0A++++++++++++gadgets:+RefCell::new(vec!%5B%5D),%0A++++++++%7D%0A++++);%0A%0A++++//+Create+%60Gadget%60s+belonging+to+%60gadget_owner%60,+as+before.%0A++++let+gadget1+=+Rc::new(%0A++++++++Gadget+%7B%0A++++++++++++id:+1,%0A++++++++++++owner:+Rc::clone(%26gadget_owner),%0A++++++++%7D%0A++++);%0A++++let+gadget2+=+Rc::new(%0A++++++++Gadget+%7B%0A++++++++++++id:+2,%0A++++++++++++owner:+Rc::clone(%26gadget_owner),%0A++++++++%7D%0A++++);%0A%0A++++//+Add+the+%60Gadget%60s+to+their+%60Owner%60.%0A++++%7B%0A++++++++let+mut+gadgets+=+gadget_owner.gadgets.borrow_mut();%0A++++++++gadgets.push(Rc::downgrade(%26gadget1));%0A++++++++gadgets.push(Rc::downgrade(%26gadget2));%0A%0A++++++++//+%60RefCell%60+dynamic+borrow+ends+here.%0A++++%7D%0A%0A++++//+Iterate+over+our+%60Gadget%60s,+printing+their+details+out.%0A++++for+gadget_weak+in+gadget_owner.gadgets.borrow().iter()+%7B%0A%0A++++++++//+%60gadget_weak%60+is+a+%60Weak%3CGadget%3E%60.+Since+%60Weak%60+pointers+can't%0A++++++++//+guarantee+the+allocation+still+exists,+we+need+to+call%0A++++++++//+%60upgrade%60,+which+returns+an+%60Option%3CRc%3CGadget%3E%3E%60.%0A++++++++//%0A++++++++//+In+this+case+we+know+the+allocation+still+exists,+so+we+simply%0A++++++++//+%60unwrap%60+the+%60Option%60.+In+a+more+complicated+program,+you+might%0A++++++++//+need+graceful+error+handling+for+a+%60None%60+result.%0A%0A++++++++let+gadget+=+gadget_weak.upgrade().unwrap();%0A++++++++println!(%22Gadget+%7B%7D+owned+by+%7B%7D%22,+gadget.id,+gadget.owner.name);%0A++++%7D%0A%0A++++//+At+the+end+of+the+function,+%60gadget_owner%60,+%60gadget1%60,+and+%60gadget2%60%0A++++//+are+destroyed.+There+are+now+no+strong+(%60Rc%60)+pointers+to+the%0A++++//+gadgets,+so+they+are+destroyed.+This+zeroes+the+reference+count+on%0A++++//+Gadget+Man,+so+he+gets+destroyed+as+well.%0A%7D&amp;edition=2021"></a></div>205 </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_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Ause+std::rc::Rc;%0Ause+std::rc::Weak;%0Ause+std::cell::RefCell;%0A%0Astruct+Owner+%7B%0A++++name:+String,%0A++++gadgets:+RefCell%3CVec%3CWeak%3CGadget%3E%3E%3E,%0A++++//+...other+fields%0A%7D%0A%0Astruct+Gadget+%7B%0A++++id:+i32,%0A++++owner:+Rc%3COwner%3E,%0A++++//+...other+fields%0A%7D%0A%0Afn+main()+%7B%0A++++//+Create+a+reference-counted+%60Owner%60.+Note+that+we've+put+the+%60Owner%60's%0A++++//+vector+of+%60Gadget%60s+inside+a+%60RefCell%60+so+that+we+can+mutate+it+through%0A++++//+a+shared+reference.%0A++++let+gadget_owner:+Rc%3COwner%3E+=+Rc::new(%0A++++++++Owner+%7B%0A++++++++++++name:+%22Gadget+Man%22.to_string(),%0A++++++++++++gadgets:+RefCell::new(vec!%5B%5D),%0A++++++++%7D%0A++++);%0A%0A++++//+Create+%60Gadget%60s+belonging+to+%60gadget_owner%60,+as+before.%0A++++let+gadget1+=+Rc::new(%0A++++++++Gadget+%7B%0A++++++++++++id:+1,%0A++++++++++++owner:+Rc::clone(%26gadget_owner),%0A++++++++%7D%0A++++);%0A++++let+gadget2+=+Rc::new(%0A++++++++Gadget+%7B%0A++++++++++++id:+2,%0A++++++++++++owner:+Rc::clone(%26gadget_owner),%0A++++++++%7D%0A++++);%0A%0A++++//+Add+the+%60Gadget%60s+to+their+%60Owner%60.%0A++++%7B%0A++++++++let+mut+gadgets+=+gadget_owner.gadgets.borrow_mut();%0A++++++++gadgets.push(Rc::downgrade(%26gadget1));%0A++++++++gadgets.push(Rc::downgrade(%26gadget2));%0A%0A++++++++//+%60RefCell%60+dynamic+borrow+ends+here.%0A++++%7D%0A%0A++++//+Iterate+over+our+%60Gadget%60s,+printing+their+details+out.%0A++++for+gadget_weak+in+gadget_owner.gadgets.borrow().iter()+%7B%0A%0A++++++++//+%60gadget_weak%60+is+a+%60Weak%3CGadget%3E%60.+Since+%60Weak%60+pointers+can't%0A++++++++//+guarantee+the+allocation+still+exists,+we+need+to+call%0A++++++++//+%60upgrade%60,+which+returns+an+%60Option%3CRc%3CGadget%3E%3E%60.%0A++++++++//%0A++++++++//+In+this+case+we+know+the+allocation+still+exists,+so+we+simply%0A++++++++//+%60unwrap%60+the+%60Option%60.+In+a+more+complicated+program,+you+might%0A++++++++//+need+graceful+error+handling+for+a+%60None%60+result.%0A%0A++++++++let+gadget+=+gadget_weak.upgrade().unwrap();%0A++++++++println!(%22Gadget+%7B%7D+owned+by+%7B%7D%22,+gadget.id,+gadget.owner.name);%0A++++%7D%0A%0A++++//+At+the+end+of+the+function,+%60gadget_owner%60,+%60gadget1%60,+and+%60gadget2%60%0A++++//+are+destroyed.+There+are+now+no+strong+(%60Rc%60)+pointers+to+the%0A++++//+gadgets,+so+they+are+destroyed.+This+zeroes+the+reference+count+on%0A++++//+Gadget+Man,+so+he+gets+destroyed+as+well.%0A%7D&amp;edition=2021"></a></div>
206 </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.Rc.html"·title="struct·alloc::rc::Rc">Rc</a></div><div·class="desc·docblock-short">A·single-threaded·reference-counting·pointer.·‘Rc’·stands·for·‘Reference206 </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.Rc.html"·title="struct·alloc::rc::Rc">Rc</a></div><div·class="desc·docblock-short">A·single-threaded·reference-counting·pointer.·‘Rc’·stands·for·‘Reference
207 Counted’.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a></div><div·class="desc·docblock-short"><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·the207 Counted’.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a></div><div·class="desc·docblock-short"><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
208 managed·allocation.·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>208 managed·allocation.·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>
209 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>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">Unique<wbr>Rc</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·uniquely·owned·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.</div></li></ul></section></div></main></body></html>209 pointer,·which·returns·an·<code><a·href="https://doc.rust-lang.org/1.83.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>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">Unique<wbr>Rc</a><wbr><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·uniquely·owned·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.</div></li></ul></section></div></main></body></html>
359 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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%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-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#313-320">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·‘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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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%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-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#313-320">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.83.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·‘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#381-627">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#393-404">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#381-627">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#393-404">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#459-464">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#459-464">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="../../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="https://doc.rust-lang.org/1.83.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,
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#487-495">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>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#487-495">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.83.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>
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#520-528">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·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#520-528">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.83.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·memory
62 being·filled·with·<code>0</code>·bytes.</p>62 being·filled·with·<code>0</code>·bytes.</p>
63 <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·and63 <p>See·<a·href="https://doc.rust-lang.org/1.83.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·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#542-553">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>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#542-553">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.83.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>
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#577-585">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>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#577-585">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.83.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.83.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>
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#610-618">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·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#610-618">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.83.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.83.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·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="../../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="https://doc.rust-lang.org/1.83.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·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#624-626">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>,·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#624-626">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.83.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>,·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#629-1001">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#644-651">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#629-1001">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#644-651">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#679-690">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>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#679-690">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.83.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>
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#717-728">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·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#717-728">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.83.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·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="../../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="https://doc.rust-lang.org/1.83.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·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; 308634/367291 bytes (84.03%) of diff not shown.
71.1 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-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#3626-3633">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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-TryFrom%3CU%3E-for-T"·title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-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#3626-3633">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.83.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>
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, 43 lines modifiedOffset 21, 43 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="../../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="https://doc.rust-lang.org/1.83.0/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#3642-3654">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#3651-3653">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#3642-3654">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#3651-3653">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#3656-3678">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#3665-3677">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#3656-3678">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#3665-3677">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#3680-3704">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#3689-3703">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#3680-3704">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.83.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#3689-3703">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#3706-3720">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#3712-3719">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#3706-3720">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.83.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:·f83be15ab25c8676bb6011a7641d508dc2122592e785154f82a8ceaa4615149a·...·]/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#3712-3719">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#3625">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:·0430168e0ff3be7b9bac754b4ca263e129fc24637156eb9a16df23861cf9ff7c·...·]/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#3625">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.83.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:·ef95e54797fea88282cc4517b20822b6cf8267c6b7d225e31eb904be8923d360·...·]/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="../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,49 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,
50 ····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">where50 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·1d94b3bfcd44533d2ae0c548a8f88644d32583f62380aa19cdef0d5dfcef0db5·...·]/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="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,51 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,
52 ····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:·b1ccc491fe0c324ca67bc01c7b90a39c018f520f91d605fa557a3ec319bceceb·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where52 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></sec[·...·truncated·by·diffoscope;·len:·1095,·SHA:·ccbbe3c3c2b9ad0bdf38674d4fe530a98ee7e4e2dc79bffc0890a425cc623aae·...·]/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="../../core/marker/trait.Sized.html"·title="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:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·b8ab8ac1cc2cc1dfc3bc940ed349e05673824a92857cb43c3be63178bec2b910·...·]/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="https://doc.rust-lang.org/1.83.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:·26e459c77cb9bf051c3ac640d0b2b3ec4b272937eed48d93c8732b2ebd34408b·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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-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">where60 </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.83.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.83.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
61 ····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:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
62 ····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:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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>62 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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, 38 lines modifiedOffset 1, 38 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.·The·allocation·is·accessed·by·calling·`upgrade`·on·the·`Weak`·pointer,·which·returns·an·Option&#60;Rc&#60;T&#62;&#62;."><title>Weak·in·alloc::rc·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#2896-2908">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·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.·The·allocation·is·accessed·by·calling·`upgrade`·on·the·`Weak`·pointer,·which·returns·an·Option&#60;Rc&#60;T&#62;&#62;."><title>Weak·in·alloc::rc·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#2896-2908">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.83.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·the
2 managed·allocation.·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>2 managed·allocation.·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 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>3 pointer,·which·returns·an·<code><a·href="https://doc.rust-lang.org/1.83.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 <p>Since·a·<code>Weak</code>·reference·does·not·count·towards·ownership,·it·will·not4 <p>Since·a·<code>Weak</code>·reference·does·not·count·towards·ownership,·it·will·not
5 prevent·the·value·stored·in·the·allocation·from·being·dropped,·and·<code>Weak</code>·itself·makes·no5 prevent·the·value·stored·in·the·allocation·from·being·dropped,·and·<code>Weak</code>·itself·makes·no
6 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>6 guarantees·about·the·value·still·being·present.·Thus·it·may·return·<a·href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>
7 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·allocation7 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
8 itself·(the·backing·store)·from·being·deallocated.</p>8 itself·(the·backing·store)·from·being·deallocated.</p>
9 <p>A·<code>Weak</code>·pointer·is·useful·for·keeping·a·temporary·reference·to·the·allocation9 <p>A·<code>Weak</code>·pointer·is·useful·for·keeping·a·temporary·reference·to·the·allocation
10 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·to10 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
11 prevent·circular·references·between·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers,·since·mutual·owning·references11 prevent·circular·references·between·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers,·since·mutual·owning·references
12 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·could12 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
13 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>13 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 pointers·from·children·back·to·their·parents.</p>14 pointers·from·children·back·to·their·parents.</p>
15 <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>15 <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 </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#2921-2947">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#2939-2946">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.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-Weak%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#2921-2947">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#2939-2946">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 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>17 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.83.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>
18 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>18 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
19 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Weak;19 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Weak;
  
20 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();20 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();
21 <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>21 <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 </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#2949-2974">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#2966-2973">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·provided22 </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#2949-2974">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#2966-2973">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
23 allocator.23 allocator.
24 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>24 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.83.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</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::rc::Weak;26 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Weak;
  
27 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();27 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();
28 <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>28 <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 </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#2987-3035">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:·61b4b2720d06141e69722ae91a8e8e532353d2d02b31a93509f4d655cfbd1680·...·]/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>29 </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#2987-3035">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.83.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:·0abe750558b9d260f3227aa693cec9dffac6fffab14506b41523304c5e023196·...·]/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 <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>30 <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 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>31 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>
32 <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>,32 <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 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>33 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>
34 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>34 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>
35 <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·potential35 <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
36 weak·reference,·and·<code>ptr</code>·must·point·to·a·block·of·memory·allocated·by·the·global·allocator.</p>36 weak·reference,·and·<code>ptr</code>·must·point·to·a·block·of·memory·allocated·by·the·global·allocator.</p>
Offset 53, 18 lines modifiedOffset 53, 18 lines modified
53 <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());53 <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="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));54 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));
  
55 drop(strong);55 drop(strong);
  
56 <span·class="comment">//·Decrement·the·last·weak·count.56 <span·class="comment">//·Decrement·the·last·weak·count.
57 </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>57 </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 </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#3037-3353">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:·a2e4a21c61856a96dd06673016d9beded38a70e21771b58cb69c7e090f20acae·...·]/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>58 </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#3037-3353">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.83.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:·42a062d32793d03c57d57d0d58ad712b4e55f06751fab0cb0ea87cb9b9a354c6·...·]/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><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#3072-3085">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>59 </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#3072-3085">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.83.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 <p>The·pointer·is·valid·only·if·there·are·some·strong·references.·The·pointer·may·be·dangling,60 <p>The·pointer·is·valid·only·if·there·are·some·strong·references.·The·pointer·may·be·dangling,
61 unaligned·or·even·<a·href="../../core/ptr/fn.null.html"·title="fn·core::ptr::null"><code>null</code></a>·otherwise.</p>61 unaligned·or·even·<a·href="https://doc.rust-lang.org/1.83.0/core/ptr/fn.null.html"·title="fn·core::ptr::null"><code>null</code></a>·otherwise.</p>
62 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>62 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
63 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;63 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;
64 <span·class="kw">use·</span>std::ptr;64 <span·class="kw">use·</span>std::ptr;
  
65 <span·class="kw">let·</span>strong·=·Rc::new(<span·class="string">"hello"</span>.to_owned());65 <span·class="kw">let·</span>strong·=·Rc::new(<span·class="string">"hello"</span>.to_owned());
66 <span·class="kw">let·</span>weak·=·Rc::downgrade(<span·class="kw-2">&amp;</span>strong);66 <span·class="kw">let·</span>weak·=·Rc::downgrade(<span·class="kw-2">&amp;</span>strong);
67 <span·class="comment">//·Both·point·to·the·same·object67 <span·class="comment">//·Both·point·to·the·same·object
Offset 72, 15 lines modifiedOffset 72, 15 lines modified
72 <span·class="comment">//·The·strong·here·keeps·it·alive,·so·we·can·still·access·the·object.72 <span·class="comment">//·The·strong·here·keeps·it·alive,·so·we·can·still·access·the·object.
73 </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()·});73 </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 drop(strong);74 drop(strong);
75 <span·class="comment">//·But·not·any·more.·We·can·do·weak.as_ptr(),·but·accessing·the·pointer·would·lead·to75 <span·class="comment">//·But·not·any·more.·We·can·do·weak.as_ptr(),·but·accessing·the·pointer·would·lead·to
76 //·undefined·behaviour.76 //·undefined·behaviour.
77 //·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+behaviour.%0A++++//+assert_eq!(%22hello%22,+unsafe+%7B+%26*weak.as_ptr()+%7D);%0A%7D&amp;edition=2021"></a></div>77 //·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+behaviour.%0A++++//+assert_eq!(%22hello%22,+unsafe+%7B+%26*weak.as_ptr()+%7D);%0A%7D&amp;edition=2021"></a></div>
78 </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#3116-3118">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>78 </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#3116-3118">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.83.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 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of79 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of
80 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned80 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned
81 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>81 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 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with82 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with
83 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::rc::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>83 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::rc::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>
84 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>84 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
85 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::{Rc,·Weak};85 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::{Rc,·Weak};
Offset 90, 15 lines modifiedOffset 90, 15 lines modified
90 <span·class="kw">let·</span>raw·=·weak.into_raw();90 <span·class="kw">let·</span>raw·=·weak.into_raw();
  
91 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));91 <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="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});92 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});
  
93 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw)·});93 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw)·});
94 <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>94 <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 </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#3152-3158">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>95 </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#3152-3158">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.83.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 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of96 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of
97 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned97 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned
98 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>98 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 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with99 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with
100 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::rc::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>100 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::rc::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>
101 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>101 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
102 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]102 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
Offset 110, 15 lines modifiedOffset 110, 15 lines modified
110 <span·class="kw">let·</span>(raw,·alloc)·=·weak.into_raw_with_allocator();110 <span·class="kw">let·</span>(raw,·alloc)·=·weak.into_raw_with_allocator();
  
111 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));111 <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="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});112 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});
  
113 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw_in(raw,·alloc)·});113 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw_in(raw,·alloc)·});
114 <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>114 <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 </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#3204-3221">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>115 </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#3204-3221">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.83.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 <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>116 <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 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>117 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>
118 <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>,118 <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 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>119 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>
120 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>120 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
121 <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·potential121 <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
122 weak·reference,·and·<code>ptr</code>·must·point·to·a·block·of·memory·allocated·by·<code>alloc</code>.</p>122 weak·reference,·and·<code>ptr</code>·must·point·to·a·block·of·memory·allocated·by·<code>alloc</code>.</p>
Offset 139, 18 lines modifiedOffset 139, 18 lines modified
139 <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());139 <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="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));140 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));
  
141 drop(strong);141 drop(strong);
  
142 <span·class="comment">//·Decrement·the·last·weak·count.142 <span·class="comment">//·Decrement·the·last·weak·count.
143 </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>143 </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 </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#3249-3263">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">where144 </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#3249-3263">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.83.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">where
145 ····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>,·delaying145 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,·delaying
146 dropping·of·the·inner·value·if·successful.</p>146 dropping·of·the·inner·value·if·successful.</p>
147 <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>147 <p>Returns·<a·href="https://doc.rust-lang.org/1.83.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 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>148 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
149 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;149 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;
  
150 <span·class="kw">let·</span>five·=·Rc::new(<span·class="number">5</span>);150 <span·class="kw">let·</span>five·=·Rc::new(<span·class="number">5</span>);
  
151 <span·class="kw">let·</span>weak_five·=·Rc::downgrade(<span·class="kw-2">&amp;</span>five);151 <span·class="kw">let·</span>weak_five·=·Rc::downgrade(<span·class="kw-2">&amp;</span>five);
  
Offset 158, 19 lines modifiedOffset 158, 19 lines modified
158 <span·class="macro">assert!</span>(strong_five.is_some());158 <span·class="macro">assert!</span>(strong_five.is_some());
  
Max diff block lines reached; 66832/113630 bytes (58.82%) of diff not shown.
7.69 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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#210">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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.83.0/src/core/slice/raw.rs.html#210">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.83.0/core/primitive.reference.html">&amp;mut[·...·truncated·by·diffoscope;·len:·82,·SHA:·c1805e0c727dfb28503d484c9e4ad03e8bbc455bcae337a5c957d828f8c2360d·...·]/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.2 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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#345">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.0/src/core/slice/raw.rs.html#345">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="../../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;,2 ····range:·<a·class="struct"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.pointer.html">*mut·T</a>&gt;,
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>3 )·-&gt;·&amp;'a·mut·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>36 See·the·safety·documentation·of·<a·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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>
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.8 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#275">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.0/src/core/slice/raw.rs.html#275">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.83.0/core/ops/range/struct[·...·truncated·by·diffoscope;·len:·245,·SHA:·8026db156202b90bbc662660265701f8c87b46854bed7835baad1c7170a1d9d7·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>31 See·the·safety·documentation·of·<a·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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>
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.8 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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.83.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.83.0/core/primitive.poin[·...·truncated·by·diffoscope;·len:·200,·SHA:·912b77d238e823c315d31bde3cd542a1e63ad5beb408889681cf7268656ccf7d·...·]/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="../../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="https://doc.rust-lang.org/1.83.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,
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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>30 See·the·safety·documentation·of·<a·href="https://doc.rust-lang.org/1.83.0/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
11.2 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#178">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.0/src/core/slice/raw.rs.html#178">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="../../core/primitive.pointer.html">*mut·T</a>,2 ····data:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.pointer.html">*mut·T</a>,
3 ····len:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,3 ····len:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
4 )·-&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·a4 )·-&gt;·&amp;'a·mut·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../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="https://doc.rust-lang.org/1.83.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,
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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>33 See·the·safety·documentation·of·<a·href="https://doc.rust-lang.org/1.83.0/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.67 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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#201">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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.83.0/src/core/slice/raw.rs.html#201">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.83.0/core/primitive.reference.html">&amp;T</[·...·truncated·by·diffoscope;·len:·74,·SHA:·037d7fc6b04be2fbf4e682d79bc1af365a3147bc4e22b1ab191d4009dafe72ed·...·]/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>
14.1 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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#863-865">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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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.83.0/src/core/slice/index.rs.html#863-865">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.83.0/core/ops/range/struct.RangeTo.[·...·truncated·by·diffoscope;·len:·372,·SHA:·c82887b4df1e04d9b62772829f692b8316d29bee715156914e17f212298d2e85·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
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>2 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
3 <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·a3 <p>This·method·is·similar·to·<a·href="https://doc.rust-lang.org/1.83.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·a
4 <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·range4 <a·href="https://doc.rust-lang.org/1.83.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·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="../../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="https://doc.rust-lang.org/1.83.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>
8 <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>·and8 <p>The·returned·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.slice.html#method.get_unchecked"·title="method·slice::get_unchecked"><code>slice::get_unchecked</code></a>·and
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>9 <a·href="https://doc.rust-lang.org/1.83.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>
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="../../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="https://doc.rust-lang.org/1.83.0/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.8 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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#927-929">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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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.83.0/src/core/slice/index.rs.html#927-929">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.83.0/core/ops/range/struct.Rang[·...·truncated·by·diffoscope;·len:·509,·SHA:·c782cc787b5ab1ee1f0360de2a298c4f3c5b4d629f42c50b7aeba2ce44bc8e87·...·]/core/primitive.usize.html">usize</a>&gt;&gt;<div·class="where">where
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>2 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
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>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.83.0/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="../../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>11 <p>Returns·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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.5 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="../sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="../sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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="../../core/primitive.slice.html"·title="primitive·slice">See·also·the·slice·primitive·type</a>.</em></p>2 <p><em><a·href="https://doc.rust-lang.org/1.83.0/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="../../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·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="https://doc.rust-lang.org/1.83.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:·84b81fbfa6304726200250490595afcdbc52a9e9ea30cd8557f9e91f5b78776a·...·]/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>
326 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ArrayChunks.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·over·a·slice·in·(non-overlapping)·chunks·(`N`·elements·at·a·time),·starting·at·the·beginning·of·the·slice."><title>ArrayChunks·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Array<wbr>Chunks</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.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-ArrayChunks%3C'_,+T,+N%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-ArrayChunks%3C'a,+T,+N%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ArrayChunks%3C'a,+T,+N%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ArrayChunks%3C'_,+T,+N%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ArrayChunks%3C'_,+T,+N%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ArrayChunks%3C'a,+T,+N%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-ArrayChunks%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-Freeze-for-ArrayChunks%3C'a,+T,+N%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ArrayChunks%3C'a,+T,+N%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ArrayChunks%3C'a,+T,+N%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ArrayChunks%3C'a,+T,+N%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ArrayChunks%3C'a,+T,+N%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ArrayChunks%3C'a,+T,+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-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">ArrayChunks</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#2328">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ArrayChunks&lt;'a,·T,·const·N:·<a·class="primitive"·href="../../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)·chunks·(`N`·elements·at·a·time),·starting·at·the·beginning·of·the·slice."><title>ArrayChunks·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Array<wbr>Chunks</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.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-ArrayChunks%3C'_,+T,+N%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-ArrayChunks%3C'a,+T,+N%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ArrayChunks%3C'a,+T,+N%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ArrayChunks%3C'_,+T,+N%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ArrayChunks%3C'_,+T,+N%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ArrayChunks%3C'a,+T,+N%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-ArrayChunks%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-Freeze-for-ArrayChunks%3C'a,+T,+N%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ArrayChunks%3C'a,+T,+N%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ArrayChunks%3C'a,+T,+N%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ArrayChunks%3C'a,+T,+N%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ArrayChunks%3C'a,+T,+N%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ArrayChunks%3C'a,+T,+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-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">ArrayChunks</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.83.0/src/core/slice/iter.rs.html#2328">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ArrayChunks&lt;'a,·T,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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)·chunks·(<code>N</code>·elements·at·a2 ····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)·chunks·(<code>N</code>·elements·at·a
3 time),·starting·at·the·beginning·of·the·slice.</p>3 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="struct.ArrayChunks.html#method.remainder"·title="method·alloc::slice::ArrayChunks::remainder"><code>remainder</code></a>·function·from·the·iterator.</p>6 the·<a·href="struct.ArrayChunks.html#method.remainder"·title="method·alloc::slice::ArrayChunks::remainder"><code>remainder</code></a>·function·from·the·iterator.</p>
7 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.array_chunks"·title="method·slice::array_chunks"><code>array_chunks</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.array_chunks"·title="method·slice::array_chunks"><code>array_chunks</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.83.0/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>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>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><span·class="kw-2">mut·</span>iter·=·slice.array_chunks::&lt;<span·class="number">2</span>&gt;();11 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.array_chunks::&lt;<span·class="number">2</span>&gt;();
12 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>,·<span·class="string">'o'</span>]));12 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>,·<span·class="string">'o'</span>]));
13 <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">'e'</span>]));13 <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">'e'</span>]));
14 <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%0A%23!%5Bfeature(array_chunks)%5D%0A%0Afn+main()+%7B%0A++++let+slice+=+%5B'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.array_chunks::%3C2%3E();%0A++++assert_eq!(iter.next(),+Some(%26%5B'l',+'o'%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'r',+'e'%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>14 <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%0A%23!%5Bfeature(array_chunks)%5D%0A%0Afn+main()+%7B%0A++++let+slice+=+%5B'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.array_chunks::%3C2%3E();%0A++++assert_eq!(iter.next(),+Some(%26%5B'l',+'o'%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'r',+'e'%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
15 </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-ArrayChunks%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2333">source</a><a·href="#impl-ArrayChunks%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"·href[·...·truncated·by·diffoscope;·len:·468,·SHA:·ab40c598bfc3eff8171297797fd6490329ee975db73f5a5ed348dbed78282794·...·]/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·be15 </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-ArrayChunks%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#2333">source</a><a·href="#impl-ArrayChunks%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.83.0/core/prim[·...·truncated·by·diffoscope;·len:·576,·SHA:·9b72af4fbd466a80695370fcd29d22afdaa39938446a757af8537b66a9c32067·...·]/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
16 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>N-1</code>16 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>N-1</code>
17 elements.</p>17 elements.</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-ArrayChunks%3C'_,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2352">source</a><a·href="#impl-Clone-for-ArrayChunks%3C'_,+T,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·const·N:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>&gt;·<a·class="trait"[·...·truncated·by·diffoscope;·len:·2024,·SHA:·4395bf5e3d3cfd9555296afd287bceb059d3451a281a5e503a4eb3d70dcc3cb5·...·]/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.ArrayChunks.html"·title="struct·alloc::slice::ArrayChunks">ArrayChunks</a>&lt;'a,·T,·N&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-ArrayChunks%3C'_,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#2352">source</a><a·href="#impl-Clone-for-ArrayChunks%3C'_,+T,+N%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/cor[·...·truncated·by·diffoscope;·len:·2321,·SHA:·04e286c7276cafdb6979a01529977c405495ae4d39960e1a77f217234b6d9b61·...·]/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.ArrayChunks.html"·title="struct·alloc::slice::ArrayChunks">ArrayChunks</a>&lt;'a,·T,·N&gt;<div·class="where">where
19 ····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#2325">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:·2418,·SHA:·656d39d3af0dc8896f55b06818fc96aa9a110dbdfb7a1c80ce275f7497da50dc·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(19 ····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.83.0/src/core/slice/iter.rs.html#2325">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:·2769,·SHA:·f9ef0488d89591eb23c18445942ca82331c8d7ee0f289780595db3a71e2a76f1·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(
20 ····&amp;mut·self,20 ····&amp;mut·self,
21 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,21 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
22 )·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.ArrayChunks.html"·title="struct·alloc::slice::ArrayChunks">ArrayChunks</a>&lt;'a,·T,·N&gt;·as·<a·class="trait"·href="../../core/iter/trai[·...·truncated·by·diffoscope;·len:·2290,·SHA:·cc6e14c0fdbd15d453e1012415fa0ac1b97c516e7b21709714575d510b1dcc11·...·]/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">where22 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.ArrayChunks.html"·title="struct·alloc::slice::ArrayChunks">ArrayChunks</a>&lt;'a,·T,·N&gt;·as·<a·class="trait"[·...·truncated·by·diffoscope;·len:·2668,·SHA:·87ddd807916aea2bdcb500d68d2a26f283c3d2fe37b4dc4dcae87e37f013cfc5·...·]/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
23 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,24 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
25 ····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·takes25 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
26 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where26 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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,28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
29 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where29 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·9155,·SHA:·8d18a9a6daaf10dd343e68d2a228e8796b9d46df33002f80eb4b3d58af352d99·...·]/core/primitive.usize.html">usize</a>&gt;(31 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10559,·SHA:·e31fc5ce1ed116d486c6b821c8f66e621e1a5302974208943a51a01120cc2b38·...·]/core/primitive.usize.html">usize</a>&gt;(
32 ····&amp;mut·self,32 ····&amp;mut·self,
33 )·-&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">where33 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/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="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
36 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where40 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····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 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
43 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where43 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
46 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where46 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element50 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
51 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where51 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
54 ····Self:·<a·class="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·as54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
55 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where55 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="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>·methods56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
57 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See57 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
58 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where58 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where60 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where62 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where64 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
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'>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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
67 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where67 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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,·but69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
70 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where70 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,72 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
73 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····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>·over75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
76 <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 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
77 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where77 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
82 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
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;,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/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>(Self::<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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
100 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
104 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(110 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
Max diff block lines reached; 150430/333403 bytes (45.12%) of diff not shown.
309 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ArrayChunksMut.html
    
Offset 1, 228 lines modifiedOffset 1, 228 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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.83.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.83.0/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="../../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>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·39407e04b27e352f812883220750afe6dda6f281422ed1ee770bc6785ad89f69·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/p[·...·truncated·by·diffoscope;·len:·602,·SHA:·11555d9cbe4252b1d5e596afaf987fbedafc6f65e94087fcc8597037b09fbaf0·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·c79666032aedca64edbcff3af3c1fda386ffeabf763a991be060c9826597689f·...·]/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="https://doc.rust-lang.org/1.83.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:·afaadf4d5e14b74d8b9519d897a12f1a007fa75f23076b74fd3d5407c41b4b26·...·]/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="../../core/primitive.usize.html">usize</a>,18 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
19 )·-&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:·b3ff8f43e83669e38c87960b2f418ee29d39f74f1d92ad0ca44593ecd0f7da3c·...·]/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="https://doc.rust-lang.org/1.83.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:·78950170618db53d2976d530a11a395b0e4b04cf7302b9ce4041cd91dd8e59f0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes22 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
26 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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:·3eec523baa4af5a2e07a3cfc18fd9b3b955588f4e584f4c81f05d30a430c11bc·...·]/core/iter/traits/iterator/trait.Iterator.html#method.nth"·class="fn">nth</a>(28 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7737,·SHA:·7fb242d95e7d7832dc6fdb656313ff285b220e370e483075b83795ddef755072·...·]/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="../../core/primitive.usize.html">usize</a>,30 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
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:·c9d6f1430a9986a33a6fd99830bf8d9660500e83eb86ec2029f8037f8996c7b7·...·]/core/primitive.usize.html">usize</a>&gt;(31 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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:·d4580695698d0ae013a7451f1e657c21780ff11b94cab5ef596698e29bc83104·...·]/core/primitive.usize.html">usize</a>&gt;(
32 ····&amp;mut·self,32 ····&amp;mut·self,
33 )·-&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">where33 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/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="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
36 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where40 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····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 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
43 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where43 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
46 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where46 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element50 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
51 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where51 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
54 ····Self:·<a·class="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·as54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
55 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where55 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="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>·methods56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
57 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See57 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
58 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where58 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where60 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where62 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where64 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
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'>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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
67 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where67 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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,·but69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
70 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where70 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,72 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
73 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····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>·over75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
76 <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 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
77 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where77 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
82 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,84 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,87 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
89 ····T:·'a,89 ····T:·'a,
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;,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/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>(Self::<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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
100 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
104 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(110 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
Max diff block lines reached; 138234/316154 bytes (43.72%) of diff not shown.
319 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ArrayWindows.html
    
Offset 1, 226 lines modifiedOffset 1, 226 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·windowed·iterator·over·a·slice·in·overlapping·chunks·(`N`·elements·at·a·time),·starting·at·the·beginning·of·the·slice"><title>ArrayWindows·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Array<wbr>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-ArrayWindows%3C'a,+T,+N%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-ArrayWindows%3C'a,+T,+N%3E"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-ArrayWindows%3C'a,+T,+N%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ArrayWindows%3C'a,+T,+N%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ArrayWindows%3C'_,+T,+N%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-Iterator-for-ArrayWindows%3C'a,+T,+N%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-ArrayWindows%3C'a,+T,+N%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-ArrayWindows%3C'a,+T,+N%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-Freeze-for-ArrayWindows%3C'a,+T,+N%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ArrayWindows%3C'a,+T,+N%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ArrayWindows%3C'a,+T,+N%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ArrayWindows%3C'a,+T,+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-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">ArrayWindows</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#2202">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ArrayWindows&lt;'a,·T,·const·N:·<a·class="primitive"·href="../../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="A·windowed·iterator·over·a·slice·in·overlapping·chunks·(`N`·elements·at·a·time),·starting·at·the·beginning·of·the·slice"><title>ArrayWindows·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Array<wbr>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-ArrayWindows%3C'a,+T,+N%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Copy-for-ArrayWindows%3C'a,+T,+N%3E"·title="Copy">Copy</a></li><li><a·href="#impl-Debug-for-ArrayWindows%3C'a,+T,+N%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ArrayWindows%3C'a,+T,+N%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ArrayWindows%3C'_,+T,+N%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-Iterator-for-ArrayWindows%3C'a,+T,+N%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-ArrayWindows%3C'a,+T,+N%3E"·title="!Send">!Send</a></li><li><a·href="#impl-Sync-for-ArrayWindows%3C'a,+T,+N%3E"·title="!Sync">!Sync</a></li><li><a·href="#impl-Freeze-for-ArrayWindows%3C'a,+T,+N%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ArrayWindows%3C'a,+T,+N%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ArrayWindows%3C'a,+T,+N%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ArrayWindows%3C'a,+T,+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-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">ArrayWindows</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.83.0/src/core/slice/iter.rs.html#2202">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ArrayWindows&lt;'a,·T,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/75027">#75027</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·windowed·iterator·over·a·slice·in·overlapping·chunks·(<code>N</code>·elements·at·a2 ····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_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/75027">#75027</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·windowed·iterator·over·a·slice·in·overlapping·chunks·(<code>N</code>·elements·at·a
3 time),·starting·at·the·beginning·of·the·slice</p>3 time),·starting·at·the·beginning·of·the·slice</p>
4 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.array_windows"·title="method·slice::array_windows"><code>array_windows</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>4 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.array_windows"·title="method·slice::array_windows"><code>array_windows</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</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(array_windows)]6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(array_windows)]
  
7 </span><span·class="kw">let·</span>slice·=·[<span·class="number">0</span>,·<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>];7 </span><span·class="kw">let·</span>slice·=·[<span·class="number">0</span>,·<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>];
8 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.array_windows::&lt;<span·class="number">2</span>&gt;();8 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.array_windows::&lt;<span·class="number">2</span>&gt;();
9 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="number">0</span>,·<span·class="number">1</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">0</span>,·<span·class="number">1</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">1</span>,·<span·class="number">2</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">1</span>,·<span·class="number">2</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">2</span>,·<span·class="number">3</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">2</span>,·<span·class="number">3</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%0A%23!%5Bfeature(array_windows)%5D%0A%0Afn+main()+%7B%0A++++let+slice+=+%5B0,+1,+2,+3%5D;%0A++++let+mut+iter+=+slice.array_windows::%3C2%3E();%0A++++assert_eq!(iter.next(),+Some(%26%5B0,+1%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B1,+2%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B2,+3%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;version=nightly&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%0A%23!%5Bfeature(array_windows)%5D%0A%0Afn+main()+%7B%0A++++let+slice+=+%5B0,+1,+2,+3%5D;%0A++++let+mut+iter+=+slice.array_windows::%3C2%3E();%0A++++assert_eq!(iter.next(),+Some(%26%5B0,+1%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B1,+2%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B2,+3%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;version=nightly&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-Clone-for-ArrayWindows%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2199">source</a><a·href="#impl-Clone-for-ArrayWindows%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="t[·...·truncated·by·diffoscope;·len:·17,·SHA:·50774411b8bd21635e687fb14e2f599911342f5735794bf0175e7576e62775fe·...·]/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.ArrayWindows.html"·title="struct·alloc::slice::ArrayWindows">ArrayWindows</a>&lt;'a,·T,·N&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-Clone-for-ArrayWindows%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#2199">source</a><a·href="#impl-Clone-for-ArrayWindows%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.83.[·...·truncated·by·diffoscope;·len:·98,·SHA:·cf331ad516a32775f969bcb3bed499292b0ce89678492d8b15fac10dc92e76f7·...·]/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.ArrayWindows.html"·title="struct·alloc::slice::ArrayWindows">ArrayWindows</a>&lt;'a,·T,·N&gt;<div·class="where">where
14 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·'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[·...·truncated·by·diffoscope;·len:·1653,·SHA:·9a5f2ab54a27101a971eb372f27cde9880940548fc02ef7ccea6630a9b560733·...·]/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.ArrayWindows.html"·title="struct·alloc::slice::ArrayWindows">ArrayWindows</a>&lt;'a,·T,·N&gt;<div·class="where">where14 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="metho[·...·truncated·by·diffoscope;·len:·1896,·SHA:·a8934b0f5acf96c928100c0d965ca983569e26758b96aac057aa2c14afb4e56d·...·]/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.ArrayWindows.html"·title="struct·alloc::slice::ArrayWindows">ArrayWindows</a>&lt;'a,·T,·N&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="../../src/core/slice/iter.rs.html#2199">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:·4820,·SHA:·b50a50cd3dcfdda7d4a906da753206c1ca5c7d59137eb13ef919ac5dba68ad90·...·]/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 ····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.83.0/src/core/slice/iter.rs.html#2199">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:·5549,·SHA:·9b42c33aefdc49167a2dfff018de87094c28a68bd8ae49c1e87c86b5b2db1cfc·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes18 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
22 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·7055,·SHA:·50f25c89d835f14a1b38b7766f8c82b536123b6a2d21754848df614babbdafff·...·]/core/iter/traits/iterator/trait.Iterator.html#method.nth"·class="fn">nth</a>(24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8108,·SHA:·dca7a41dfdfd0ab55f0d12d8d50e915d86233c2ae322597f711cf74923275d07·...·]/core/iter/traits/iterator/trait.Iterator.html#method.nth"·class="fn">nth</a>(
25 ····&amp;mut·self,25 ····&amp;mut·self,
26 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,26 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
27 )·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.ArrayWindows.html"·title="struct·alloc::slice::ArrayWindows">ArrayWindows</a>&lt;'a,·T,·N&gt;·as·<a·class="trait"·href="../../core/iter/t[·...·truncated·by·diffoscope;·len:·2037,·SHA:·26b2e22d2a1ddbf30b4168bb5715de2fa428cab66f6a55568de611131089556d·...·]/core/primitive.usize.html">usize</a>&gt;(27 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.ArrayWindows.html"·title="struct·alloc::slice::ArrayWindows">ArrayWindows</a>&lt;'a,·T,·N&gt;·as·<a·class="tra[·...·truncated·by·diffoscope;·len:·2388,·SHA:·84d134d5eadf023507761572c3c069c4c775f22f1197e7afeae57f690cf1329e·...·]/core/primitive.usize.html">usize</a>&gt;(
28 ····&amp;mut·self,28 ····&amp;mut·self,
29 )·-&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">where29 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/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="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
32 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where36 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>38 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
42 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
51 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
63 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····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,·but65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,68 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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>·over71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,80 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
85 ····T:·'a,85 ····T:·'a,
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;,86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,87 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
96 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
100 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(106 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the112 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where119 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where125 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 89109/326110 bytes (27.32%) of diff not shown.
297 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ChunkBy.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="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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.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">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="../../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>3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·e9a5ad15a64f224f961b9a1dfbcd0b4a8a52bc20e3e3436f593f92a218e04f27·...·]/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="https://doc.rust-lang.org/1.83.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:·4fee8b481d59f70772403b34590113c41026d27d7f976893f70f076659903843·...·]/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="../../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:·881239de4007e52fa75585f543e3b2d17aca9334cbe008f9da562db881bbdc01·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·4889,·SHA:·fc75f5fba5739340133e7531a53e80a3489353ab39ba51b0e90df8ca4a1ba69a·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes10 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Itera[·...·truncated·by·diffoscope;·len:·817,·SHA:·820aca4d9ff28ebc6a1aa628acaf1f75a86933237f065541c7127f4814953155·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·979,·SHA:·2c5fcfff308dcb37bce558ecc60102112ff049abd2fde54ad501a437e4c31e66·...·]/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="../../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:·2b85b209d9fa973a8c5379481534d11d51316c2e608ab8e0589dc69ebab99598·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·4949,·SHA:·36ea15f50398bd5e19580ce1bc5c14f7a8ad82fcb5fe5bf6b407f0b0a98d4889·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····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:·7f08fab3840e63f93f559442f0e17e35484e9059b67893b06d16622df49f52d9·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
24 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
34 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
43 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
55 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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>·over63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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="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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
77 ····T:·'a,77 ····T:·'a,
78 ····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 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
79 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
81 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
84 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where84 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·returns87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
88 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where88 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the91 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
92 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where92 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
95 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where95 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/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::[·...·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·reducing97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
98 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</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>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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·[·...·truncated·by·diffoscope;·len:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="https://doc.rust-lang.org/1.83.0/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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[·...·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·the104 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
105 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
114 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
120 ····&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·returns120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
121 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,124 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····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·the126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
127 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where127 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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; 81010/303851 bytes (26.66%) of diff not shown.
297 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ChunkByMut.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="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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.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">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="../../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>4 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·d5b89e067f4359fe8086e52ceeadc31b3942deaa39046303c336c826a4aa9870·...·]/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="https://doc.rust-lang.org/1.83.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:·7bf4bf093f400c0b58034da87689409ac7c99b736fb57df83af389aec17bb5e2·...·]/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="../../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:·94227fdb7111d9adb622d2e38aca19e96d7c274d9490226207da5b3251e5f54f·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·4898,·SHA:·a2081dcb4984c0b652d1a349709b86fa265c8c7dc54ef6be3c9a962561a2ffac·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes11 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Itera[·...·truncated·by·diffoscope;·len:·823,·SHA:·509c9791c4324d0a97b235b816f32a572520952265e2afb4bbff2746bd5c5c87·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·985,·SHA:·ec0ae4d11527ac8bafe4a772b56fbc8eca4b2d9ac81b4edd7f8d143172ec4144·...·]/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="../../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:·b018557eb55ad22bca37e2c4b4f6e605226a0133a0c6a11a3183751c594fb315·...·]/core/primitive.usize.html">usize</a>&gt;(19 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·4971,·SHA:·929e8a7e1594dac111caaab5174c5692f42fcc557e9aeff794fdd8298af3f879·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self,20 ····&amp;mut·self,
21 )·-&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">where21 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
23 ····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:·7f08fab3840e63f93f559442f0e17e35484e9059b67893b06d16622df49f52d9·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
25 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>31 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
35 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::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·element39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
44 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
56 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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,·but58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
62 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····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>·over64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,73 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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="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;,76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
78 ····T:·'a,78 ····T:·'a,
79 ····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;,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
80 ····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,80 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
82 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where82 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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,84 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
85 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where85 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····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,87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·returns88 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
89 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where89 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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;·R,91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
92 ····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·the92 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
93 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where93 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
96 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where96 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the105 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where112 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,117 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,120 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
121 ····&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·returns121 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where122 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,125 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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·the127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
Max diff block lines reached; 80490/303630 bytes (26.51%) of diff not shown.
319 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.Chunks.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·over·a·slice·in·(non-overlapping)·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·beginning·of·the·slice."><title>Chunks·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Chunks</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-Chunks%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Chunks%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Chunks%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Chunks%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Chunks%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Chunks%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Chunks%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-Chunks%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Chunks%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Chunks%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Chunks%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Chunks%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Chunks%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">Chunks</span><button·id="copy-path"·title="Copy·item·path·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#1480">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Chunks&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)·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·beginning·of·the·slice."><title>Chunks·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Chunks</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-Chunks%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Chunks%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Chunks%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Chunks%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Chunks%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Chunks%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Chunks%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-Chunks%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Chunks%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Chunks%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Chunks%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Chunks%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Chunks%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">Chunks</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/slice/iter.rs.html#1480">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Chunks&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)·chunks·(<code>chunk_size</code>·elements·at·a2 ····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)·chunks·(<code>chunk_size</code>·elements·at·a
3 time),·starting·at·the·beginning·of·the·slice.</p>3 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="../../core/primitive.slice.html#method.chunks"·title="method·slice::chunks"><code>chunks</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.chunks"·title="method·slice::chunks"><code>chunks</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.83.0/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="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>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><span·class="kw-2">mut·</span>iter·=·slice.chunks(<span·class="number">2</span>);9 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.chunks(<span·class="number">2</span>);
10 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>,·<span·class="string">'o'</span>][..]));10 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>,·<span·class="string">'o'</span>][..]));
11 <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">'e'</span>][..]));11 <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">'e'</span>][..]));
12 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'m'</span>][..]));12 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'m'</span>][..]));
13 <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'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.chunks(2);%0A++++assert_eq!(iter.next(),+Some(%26%5B'l',+'o'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'r',+'e'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'm'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>13 <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'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.chunks(2);%0A++++assert_eq!(iter.next(),+Some(%26%5B'l',+'o'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'r',+'e'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'm'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>
14 </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-Chunks%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#1494">source</a></span><a·href="#impl-Clone-for-Chunks%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:·1783,·SHA:·57a713c2660ed403fa6fc94040325c19d2d727bfbfe56b0ef398c256127d0cdc·...·]/src/core/slice/iter.rs.html#1477">source</a></span><a·href="#impl-Debug-for-Chunks%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.Chunks.html"·title="struct·alloc::slice::Chunks">Chunks</a>&lt;'a,·T&gt;<div·class="where">where14 </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-Chunks%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.83.0/src/core/slice/iter.rs.html#1494">source</a></span><a·href="#impl-Clone-for-Chunks%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/tra[·...·truncated·by·diffoscope;·len:·2026,·SHA:·a07308c6678f8bdb1bd8aa1c15e2f2d839d53bf667888f313ea72b11884b5ff2·...·]/src/core/slice/iter.rs.html#1477">source</a></span><a·href="#impl-Debug-for-Chunks%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.Chunks.html"·title="struct·alloc::slice::Chunks">Chunks</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="../../src/core/slice/iter.rs.html#1477">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:·5145,·SHA:·5b97d1ea97064c63d1e7a165a170f1c7a0e66e22f67de80bb8a3aa615ac53122·...·]/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 ····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.83.0/src/core/slice/iter.rs.html#1477">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:·5874,·SHA:·43d9d5596c557d848dcadf49bda0222fd4de531690b59ea42b3a3d58d6b2eeab·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes18 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
22 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·9088,·SHA:·cf1a7c68ce74af9af31d4bc3232396542b920c2b095efa1c301268554924a204·...·]/core/primitive.usize.html">usize</a>&gt;(24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10438,·SHA:·fe5e876694f851fbad31097931fc8e0b55abac769a5d5562fb10114bc841b72a·...·]/core/primitive.usize.html">usize</a>&gt;(
25 ····&amp;mut·self,25 ····&amp;mut·self,
26 )·-&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">where26 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/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="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
29 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>35 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
39 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
48 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
60 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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,·but62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,65 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
66 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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>·over68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
77 ····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;,77 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····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;,80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
82 ····T:·'a,82 ····T:·'a,
83 ····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;,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
84 ····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,84 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.85 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
86 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where86 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
92 ····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·returns92 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
93 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where93 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the96 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
97 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where97 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where100 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(103 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,105 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where106 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the109 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where116 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where122 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,124 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
125 ····&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·returns125 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 88664/326759 bytes (27.13%) of diff not shown.
325 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ChunksExact.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·a·slice·in·(non-overlapping)·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·beginning·of·the·slice."><title>ChunksExact·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Chunks<wbr>Exact</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.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-ChunksExact%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-ChunksExact%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunksExact%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ChunksExact%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunksExact%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunksExact%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-ChunksExact%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-ChunksExact%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunksExact%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ChunksExact%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ChunksExact%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ChunksExact%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ChunksExact%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">ChunksExact</span><button·id="copy-path"·title="Copy·item·path·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#1855">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ChunksExact&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)·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·beginning·of·the·slice."><title>ChunksExact·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Chunks<wbr>Exact</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.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-ChunksExact%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-ChunksExact%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunksExact%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ChunksExact%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunksExact%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunksExact%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-ChunksExact%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-ChunksExact%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunksExact%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ChunksExact%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-ChunksExact%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-ChunksExact%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ChunksExact%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">ChunksExact</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/slice/iter.rs.html#1855">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·ChunksExact&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)·chunks·(<code>chunk_size</code>·elements·at·a2 ····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)·chunks·(<code>chunk_size</code>·elements·at·a
3 time),·starting·at·the·beginning·of·the·slice.</p>3 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>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from5 up·to·<code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from
6 the·<a·href="struct.ChunksExact.html#method.remainder"·title="method·alloc::slice::ChunksExact::remainder"><code>remainder</code></a>·function·from·the·iterator.</p>6 the·<a·href="struct.ChunksExact.html#method.remainder"·title="method·alloc::slice::ChunksExact::remainder"><code>remainder</code></a>·function·from·the·iterator.</p>
7 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.chunks_exact"·title="method·slice::chunks_exact"><code>chunks_exact</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.chunks_exact"·title="method·slice::chunks_exact"><code>chunks_exact</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.83.0/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>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>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><span·class="kw-2">mut·</span>iter·=·slice.chunks_exact(<span·class="number">2</span>);10 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.chunks_exact(<span·class="number">2</span>);
11 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>,·<span·class="string">'o'</span>][..]));11 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>,·<span·class="string">'o'</span>][..]));
12 <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">'e'</span>][..]));12 <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">'e'</span>][..]));
13 <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'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.chunks_exact(2);%0A++++assert_eq!(iter.next(),+Some(%26%5B'l',+'o'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'r',+'e'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>13 <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'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.chunks_exact(2);%0A++++assert_eq!(iter.next(),+Some(%26%5B'l',+'o'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'r',+'e'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>
14 </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-ChunksExact%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1861">source</a><a·href="#impl-ChunksExact%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="struct"·href="struct.ChunksExact.html"·title="struct·alloc::slice::ChunksExact">ChunksExact</a>[·...·truncated·by·diffoscope;·len:·480,·SHA:·bde04fd8b73d67081cb414a34b4a76fa8af949caebbf399ffd65f037be7e291b·...·]/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·be14 </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-ChunksExact%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#1861">source</a><a·href="#impl-ChunksExact%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="struct"·href="struct.ChunksExact.html"·title="struct·alloc::slice::C[·...·truncated·by·diffoscope;·len:·561,·SHA:·131f3ec9306998d7fc252db9c432b1920162f45d1e08b7a4d36565e8a0e82e82·...·]/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
15 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>15 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>
16 elements.</p>16 elements.</p>
17 <h5·id="example-1"><a·class="doc-anchor"·href="#example-1">§</a>Example</h5>17 <h5·id="example-1"><a·class="doc-anchor"·href="#example-1">§</a>Example</h5>
18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</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>];18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</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>];
19 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.chunks_exact(<span·class="number">2</span>);19 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.chunks_exact(<span·class="number">2</span>);
20 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'m'</span>][..]);20 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'m'</span>][..]);
21 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>,·<span·class="string">'o'</span>][..]));21 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>,·<span·class="string">'o'</span>][..]));
22 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'m'</span>][..]);22 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'m'</span>][..]);
23 <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">'e'</span>][..]));23 <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">'e'</span>][..]));
24 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'m'</span>][..]);24 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'m'</span>][..]);
25 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">None</span>);25 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">None</span>);
26 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'m'</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'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.chunks_exact(2);%0A++++assert_eq!(iter.remainder(),+%26%5B'm'%5D%5B..%5D);%0A++++assert_eq!(iter.next(),+Some(%26%5B'l',+'o'%5D%5B..%5D));%0A++++assert_eq!(iter.remainder(),+%26%5B'm'%5D%5B..%5D);%0A++++assert_eq!(iter.next(),+Some(%26%5B'r',+'e'%5D%5B..%5D));%0A++++assert_eq!(iter.remainder(),+%26%5B'm'%5D%5B..%5D);%0A++++assert_eq!(iter.next(),+None);%0A++++assert_eq!(iter.remainder(),+%26%5B'm'%5D%5B..%5D);%0A%7D&amp;edition=2021"></a></div>26 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'m'</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'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.chunks_exact(2);%0A++++assert_eq!(iter.remainder(),+%26%5B'm'%5D%5B..%5D);%0A++++assert_eq!(iter.next(),+Some(%26%5B'l',+'o'%5D%5B..%5D));%0A++++assert_eq!(iter.remainder(),+%26%5B'm'%5D%5B..%5D);%0A++++assert_eq!(iter.next(),+Some(%26%5B'r',+'e'%5D%5B..%5D));%0A++++assert_eq!(iter.remainder(),+%26%5B'm'%5D%5B..%5D);%0A++++assert_eq!(iter.next(),+None);%0A++++assert_eq!(iter.remainder(),+%26%5B'm'%5D%5B..%5D);%0A%7D&amp;edition=2021"></a></div>
27 </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-ChunksExact%3C'_,+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#1897">source</a></span><a·href="#impl-Clone-for-ChunksExact%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">C[·...·truncated·by·diffoscope;·len:·1830,·SHA:·7340a6016284ba097d6d1cf0dfef9757a557e11441b4292c020d89fb3f850ede·...·]/src/core/slice/iter.rs.html#1852">source</a></span><a·href="#impl-Debug-for-ChunksExact%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.ChunksExact.html"·title="struct·alloc::slice::ChunksExact">ChunksExact</a>&lt;'a,·T&gt;<div·class="where">where27 </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-ChunksExact%3C'_,+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.83.0/src/core/slice/iter.rs.html#1897">source</a></span><a·href="#impl-Clone-for-ChunksExact%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clon[·...·truncated·by·diffoscope;·len:·2073,·SHA:·d1d62f708ad2c1ca01a1f352af36f7eb08ee6488a0ba6a3b4a7af640c7af4673·...·]/src/core/slice/iter.rs.html#1852">source</a></span><a·href="#impl-Debug-for-ChunksExact%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.ChunksExact.html"·title="struct·alloc::slice::ChunksExact">ChunksExact</a>&lt;'a,·T&gt;<div·class="where">where
28 ····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#1852">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:·2424,·SHA:·04af0f59496a391d5f2604dafb066f199ba3323b345c8244e31769a12dbb494e·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(28 ····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.83.0/src/core/slice/iter.rs.html#1852">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:·2748,·SHA:·106f844b7acdf602881c294867e2156ecf483111eddad5508592fac750ac24d0·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(
29 ····&amp;mut·self,29 ····&amp;mut·self,
30 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,30 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
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.ChunksExact.html"·title="struct·alloc::slice::ChunksExact">ChunksExact</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/[·...·truncated·by·diffoscope;·len:·2287,·SHA:·97e6abed9a98d71468e73d8a188f0e69519ed1eb50a957d2e09a6aaaa4ed4a2d·...·]/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">where31 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.ChunksExact.html"·title="struct·alloc::slice::ChunksExact">ChunksExact</a>&lt;'a,·T&gt;·as·<a·class="trait"·hr[·...·truncated·by·diffoscope;·len:·2665,·SHA:·86c62a0b00b5d78e0414f9f3b4abe3822fc33d68fea0ed15b97bebd229840ec6·...·]/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
32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
34 ····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·takes34 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
35 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where35 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
38 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where38 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·9161,·SHA:·a40f27409a5f0b428035bedddd9463c830b2170febdfa1d6ec6efa0310fe4bda·...·]/core/primitive.usize.html">usize</a>&gt;(40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10511,·SHA:·db4148a6cfa3915fd672099acccdb72605735bdd2dfc50a54bed69ca30a56746·...·]/core/primitive.usize.html">usize</a>&gt;(
41 ····&amp;mut·self,41 ····&amp;mut·self,
42 )·-&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">where42 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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
44 ····Self:·<a·class="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·by44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
45 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where45 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where47 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&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="https://doc.rust-lang.org/1.83.0/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>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where49 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····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>51 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
52 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where52 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
55 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where55 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element59 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
60 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where60 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
64 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where64 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
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'>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>·methods65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
66 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See66 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
67 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where67 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where69 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where71 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where73 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
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'>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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
76 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where76 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
79 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where79 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,81 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
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::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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>·over84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
85 <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>,85 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
86 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where86 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
87 ····Self:·<a·class="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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
89 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
90 ····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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
91 ····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;,91 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
92 ····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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
93 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
94 ····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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
97 ····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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
98 ····T:·'a,98 ····T:·'a,
99 ····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 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
100 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
101 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.101 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
102 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where102 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
103 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
105 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where105 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·returns108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
109 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where109 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
112 ····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·the112 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
113 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where113 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
116 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
119 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(119 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
120 ····&amp;mut·self,120 ····&amp;mut·self,
121 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
125 ····&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·the125 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
126 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where126 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 148767/332864 bytes (44.69%) of diff not shown.
306 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ChunksExactMut.html
    
Offset 1, 223 lines modifiedOffset 1, 223 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.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">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="../../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>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·ac7739ff704982ed19a904816b0e092da51118ab50e4b94f89a64226d809803c·...·]/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="https://doc.rust-lang.org/1.83.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:·16389d743c880c6440bb8bc872570761680cff27762a974c3f861693dcfef590·...·]/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·55ee9eab4a467db07d9a8bbb98b2e2f6872f5763996acf1e317d8225214fc6c5·...·]/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="https://doc.rust-lang.org/1.83.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:·2fab941e41279815c6c04ed2271b3f0fcba4d3713f062af78577e5fb5d247341·...·]/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="../../core/primitive.usize.html">usize</a>,17 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
18 )·-&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:·b3228e3d28087cf654ac365613c50f1b2d50c1bbbf9a61f7900d69e26e83aa4d·...·]/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="https://doc.rust-lang.org/1.83.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:·8b02161f0b9b803459b1c3d3a5dd4757052ab645e270c0042ca02ba03fc486a0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes21 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,24 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::Itera[·...·truncated·by·diffoscope;·len:·8843,·SHA:·02956f3f949bccc26d8049ccd0ab921413211dc410350185545108086dda9606·...·]/core/primitive.usize.html">usize</a>&gt;(27 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10166,·SHA:·62144f04b4d173005631e2a23d1a9dde0ac06313fdd4136470cbe58c29ea9aa1·...·]/core/primitive.usize.html">usize</a>&gt;(
28 ····&amp;mut·self,28 ····&amp;mut·self,
29 )·-&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">where29 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/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="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
32 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where36 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>38 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
42 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
51 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
63 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····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,·but65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,68 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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>·over71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,80 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
85 ····T:·'a,85 ····T:·'a,
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;,86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,87 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
96 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
100 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(106 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the112 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where119 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where125 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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;,127 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
Max diff block lines reached; 80175/313716 bytes (25.56%) of diff not shown.
302 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.ChunksMut.html
    
Offset 1, 216 lines modifiedOffset 1, 216 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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.83.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">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="../../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>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·8134d245d72d94de4709ebd344e0da3b25eca351a1ca8499885af7d10bbac3c6·...·]/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="https://doc.rust-lang.org/1.83.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:·c85dd8326624533a046d6cd226ef3a4f6935ffc94bed85dd888e83eff5cd82f2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes14 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·a327a12b58638d12320299d27c83a70d58c5571edcb1f9130fae8ae8f51bc7d7·...·]/core/primitive.usize.html">usize</a>&gt;(20 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10108,·SHA:·80092aaefe3c8c51eb95886cc180585b39dce3fccccf7f91ffcff3708b79af18·...·]/core/primitive.usize.html">usize</a>&gt;(
21 ····&amp;mut·self,21 ····&amp;mut·self,
22 )·-&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">where22 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/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="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
25 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>31 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
35 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::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·element39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
44 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
56 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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,·but58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
62 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····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>·over64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,73 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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="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;,76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
78 ····T:·'a,78 ····T:·'a,
79 ····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;,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
80 ····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,80 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
82 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where82 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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,84 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
85 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where85 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····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,87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·returns88 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
89 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where89 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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;·R,91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
92 ····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·the92 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
93 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where93 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
96 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where96 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the105 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where112 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,117 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,120 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
121 ····&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·returns121 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where122 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····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:·24b05508866a859ec0c505fb99ef85c0bb1b2a9030b237dfc0130a630e609609·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
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::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,125 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</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/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·its126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
127 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·506,·SHA:·eaf5c99afa90e21d31018108d49e42add1f1dc2eebae523f4950b1dd365530d1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where127 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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; 79767/309613 bytes (25.76%) of diff not shown.
311 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.EscapeAscii.html
    
Offset 1, 206 lines modifiedOffset 1, 206 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#215">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.0/src/core/slice/ascii.rs.html#215">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="../../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="https://doc.rust-lang.org/1.83.0/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="../../src/core/slice/ascii.rs.html#213">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:·fa849213391ae0df58b17c30e6db4d785e597c83be2a9083a2ccec3dfedf336a·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/slice/ascii.rs.html#213">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.83.0/core/clone/[·...·truncated·by·diffoscope;·len:·10278,·SHA:·2c03338d7c61665d136f9bdd08d03d406115e075c2eb988d447dfdd4edd92d38·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,5 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes7 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,10 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Itera[·...·truncated·by·diffoscope;·len:·3519,·SHA:·7bbbab85c2339aa405ec4540c864d1df2829566ebe11af6128196bb0a916a549·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4113,·SHA:·fc0d87b6e0effa3996b04f2b799c84552dd08ca3cd0f42bde9a5b54347846ff7·...·]/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="../../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,14 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·24af5dbac51cd3116986b0ad1c574aa3da94fca2742fa767ac6d67d06dd938ab·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·returns
16 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:·96259a64261d7a3ba1328fa6a49987df02b2737acea169cfd3f3d66e5d61abd4·...·]/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="https://doc.rust-lang.org/1.83.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:·dc460eb628c41874a1ac91a010021ff246b04bb634be0d09f8ecc14c0b7ec1de·...·]/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="../../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,17 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·24af5dbac51cd3116986b0ad1c574aa3da94fca2742fa767ac6d67d06dd938ab·...·]/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="../../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:·479f5e2d09542fc66a7498e30b4fe78162c3ed8f10438dbe2e9612759de24ea7·...·]/core/primitive.usize.html">usize</a>&gt;(18 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·e3b3f985be3b7ce6b81e233d682e358fed351d43fe2d3e2869d5b8fe4b35dccd·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····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:·7f08fab3840e63f93f559442f0e17e35484e9059b67893b06d16622df49f52d9·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
24 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>30 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
34 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
43 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
55 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,60 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
61 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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>·over63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,72 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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="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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
77 ····T:·'a,77 ····T:·'a,
78 ····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 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
79 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.80 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
81 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
84 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:·d5126ad922d22b11df569bcedd40ea1cb0c9e317f047f58c89ce85c324f3778d·...·]/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 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.83.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:·e3d897d44df3dae7ac7124bbc28956b2162c6cb742072d9f945cc178f70aeae6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
88 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:·2b096dde994cfe56c8d19079db1c165d5a3bf7b9952c836db68d378ef764adea·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where88 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·55da9d2eafc5b29aede623a11a0bd0fd119d24fed5bbdee7540356cdb8aeefc9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
91 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(91 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
92 ····&amp;mut·self,92 ····&amp;mut·self,
93 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,93 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
94 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where94 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
97 ····&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·the97 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
98 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where98 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where104 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
107 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(107 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
108 ····&amp;mut·self,108 ····&amp;mut·self,
109 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where110 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
113 ····&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·returns113 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
114 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where114 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
115 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,117 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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·the119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
120 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
123 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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/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·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,124 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····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·the126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
127 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·2bda7c0e9b5772a555bb689908791c4c7160f538659a6e1ec8976f71a8ff527b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where127 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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; 89093/318480 bytes (27.97%) of diff not shown.
332 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.Iter.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="Immutable·slice·iterator"><title>Iter·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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="#">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_slice"·title="as_slice">as_slice</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-Iter%3C'_,+T%3E"·title="AsRef&#60;[T]&#62;">AsRef&#60;[T]&#62;</a></li><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><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-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>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">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/core/slice/iter.rs.html#63">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&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="Immutable·slice·iterator"><title>Iter·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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="#">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_slice"·title="as_slice">as_slice</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-Iter%3C'_,+T%3E"·title="AsRef&#60;[T]&#62;">AsRef&#60;[T]&#62;</a></li><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><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-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>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">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="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#63">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&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>Immutable·slice·iterator</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>Immutable·slice·iterator</p>
3 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.iter"·title="method·slice::iter"><code>iter</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.iter"·title="method·slice::iter"><code>iter</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</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="comment">//·First,·we·declare·a·type·which·has·`iter`·method·to·get·the·`Iter`·struct·(`&amp;[usize]`·here):6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·First,·we·declare·a·type·which·has·`iter`·method·to·get·the·`Iter`·struct·(`&amp;[usize]`·here):
7 </span><span·class="kw">let·</span>slice·=·<span·class="kw-2">&amp;</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>];7 </span><span·class="kw">let·</span>slice·=·<span·class="kw-2">&amp;</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>];
  
8 <span·class="comment">//·Then,·we·iterate·over·it:8 <span·class="comment">//·Then,·we·iterate·over·it:
9 </span><span·class="kw">for·</span>element·<span·class="kw">in·</span>slice.iter()·{9 </span><span·class="kw">for·</span>element·<span·class="kw">in·</span>slice.iter()·{
10 ····<span·class="macro">println!</span>(<span·class="string">"{element}"</span>);10 ····<span·class="macro">println!</span>(<span·class="string">"{element}"</span>);
11 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+First,+we+declare+a+type+which+has+%60iter%60+method+to+get+the+%60Iter%60+struct+(%60%26%5Busize%5D%60+here):%0Afn+main()+%7B%0A++++let+slice+=+%26%5B1,+2,+3%5D;%0A++++%0A++++//+Then,+we+iterate+over+it:%0A++++for+element+in+slice.iter()+%7B%0A++++++++println!(%22%7Belement%7D%22);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>11 }</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+First,+we+declare+a+type+which+has+%60iter%60+method+to+get+the+%60Iter%60+struct+(%60%26%5Busize%5D%60+here):%0Afn+main()+%7B%0A++++let+slice+=+%26%5B1,+2,+3%5D;%0A++++%0A++++//+Then,+we+iterate+over+it:%0A++++for+element+in+slice.iter()+%7B%0A++++++++println!(%22%7Belement%7D%22);%0A++++%7D%0A%7D&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-Iter%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#88">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::slice::Iter">Iter</a>&lt;'a,·T&gt;</h3></section></[·...·truncated·by·diffoscope;·len:·444,·SHA:·4bbc5ebbdf9adef06d8f9c023a1657dacc8fcc3bfe542b007de2cbb16f0e33ae·...·]/core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·subslice·of·the·original·data.</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-Iter%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#88">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::slice::Iter">Iter</a>&lt[·...·truncated·by·diffoscope;·len:·525,·SHA:·b512d275892992c5f738149a37cd230230bbf940ccd57b8a3d0cdd1d6f47eb22·...·]/core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·subslice·of·the·original·data.</p>
13 <p>This·has·the·same·lifetime·as·the·original·slice,·and·so·the13 <p>This·has·the·same·lifetime·as·the·original·slice,·and·so·the
14 iterator·can·continue·to·be·used·while·this·exists.</p>14 iterator·can·continue·to·be·used·while·this·exists.</p>
15 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>15 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
16 <p>Basic·usage:</p>16 <p>Basic·usage:</p>
  
17 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·First,·we·declare·a·type·which·has·the·`iter`·method·to·get·the·`Iter`17 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·First,·we·declare·a·type·which·has·the·`iter`·method·to·get·the·`Iter`
18 //·struct·(`&amp;[usize]`·here):18 //·struct·(`&amp;[usize]`·here):
Offset 26, 221 lines modifiedOffset 26, 221 lines modified
26 <span·class="comment">//·So·if·we·print·what·`as_slice`·method·returns·here,·we·have·"[1,·2,·3]":26 <span·class="comment">//·So·if·we·print·what·`as_slice`·method·returns·here,·we·have·"[1,·2,·3]":
27 </span><span·class="macro">println!</span>(<span·class="string">"{:?}"</span>,·iter.as_slice());27 </span><span·class="macro">println!</span>(<span·class="string">"{:?}"</span>,·iter.as_slice());
  
28 <span·class="comment">//·Next,·we·move·to·the·second·element·of·the·slice:28 <span·class="comment">//·Next,·we·move·to·the·second·element·of·the·slice:
29 </span>iter.next();29 </span>iter.next();
30 <span·class="comment">//·Now·`as_slice`·returns·"[2,·3]":30 <span·class="comment">//·Now·`as_slice`·returns·"[2,·3]":
31 </span><span·class="macro">println!</span>(<span·class="string">"{:?}"</span>,·iter.as_slice());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+First,+we+declare+a+type+which+has+the+%60iter%60+method+to+get+the+%60Iter%60%0A//+struct+(%60%26%5Busize%5D%60+here):%0Afn+main()+%7B%0A++++let+slice+=+%26%5B1,+2,+3%5D;%0A++++%0A++++//+Then,+we+get+the+iterator:%0A++++let+mut+iter+=+slice.iter();%0A++++//+So+if+we+print+what+%60as_slice%60+method+returns+here,+we+have+%22%5B1,+2,+3%5D%22:%0A++++println!(%22%7B:?%7D%22,+iter.as_slice());%0A++++%0A++++//+Next,+we+move+to+the+second+element+of+the+slice:%0A++++iter.next();%0A++++//+Now+%60as_slice%60+returns+%22%5B2,+3%5D%22:%0A++++println!(%22%7B:?%7D%22,+iter.as_slice());%0A%7D&amp;edition=2021"></a></div>31 </span><span·class="macro">println!</span>(<span·class="string">"{:?}"</span>,·iter.as_slice());</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+First,+we+declare+a+type+which+has+the+%60iter%60+method+to+get+the+%60Iter%60%0A//+struct+(%60%26%5Busize%5D%60+here):%0Afn+main()+%7B%0A++++let+slice+=+%26%5B1,+2,+3%5D;%0A++++%0A++++//+Then,+we+get+the+iterator:%0A++++let+mut+iter+=+slice.iter();%0A++++//+So+if+we+print+what+%60as_slice%60+method+returns+here,+we+have+%22%5B1,+2,+3%5D%22:%0A++++println!(%22%7B:?%7D%22,+iter.as_slice());%0A++++%0A++++//+Next,+we+move+to+the+second+element+of+the+slice:%0A++++iter.next();%0A++++//+Now+%60as_slice%60+returns+%22%5B2,+3%5D%22:%0A++++println!(%22%7B:?%7D%22,+iter.as_slice());%0A%7D&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-AsRef%3C%5BT%5D%3E-for-Iter%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.13.0">1.13.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#153">source</a></span><a·href="#impl-AsRef%3C%5BT%5D%3E-for-Iter%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert:[·...·truncated·by·diffoscope;·len:·3088,·SHA:·79a03377d381f75db34d7b35b2d586f4a8d6712e6fa77d20cfdcc5151fcf58ae·...·]/src/core/slice/iter.rs.html#77">source</a></span><a·href="#impl-Debug-for-Iter%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'_,·T&gt;<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-AsRef%3C%5BT%5D%3E-for-Iter%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.13.0">1.13.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#153">source</a></span><a·href="#impl-AsRef%3C%5BT%5D%3E-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.83.0/core[·...·truncated·by·diffoscope;·len:·3493,·SHA:·6d1fbe43c880d5d8c87e1e7ba70335f0660f38c746426ca6e9f3085c3edd661e·...·]/src/core/slice/iter.rs.html#77">source</a></span><a·href="#impl-Debug-for-Iter%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'_,·T&gt;<div·class="where">where
33 ····T:·<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#78">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.ht[·...·truncated·by·diffoscope;·len:·1466,·SHA:·c44920a1bd0d1a43a60a80d0baa5f01840696dc27a9dabfaed16d34cc35c1fa7·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'_,·T&gt;·<a·href="#"·class="tooltip"·data-notable-ty="Iter&lt;&#39;_,·T&gt;">ⓘ</a></h4></section></summary><div·class="docblock"><p>Creates·an·empty·slice·iterator.</p>33 ····T:·<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.83.0/src/core/slice/iter.rs.html#78">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=[·...·truncated·by·diffoscope;·len:·1655,·SHA:·0a4777c3c7a5cc6622eee8640afd28dccf7e14dbe7dc68051642ddb3c75c376f·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'_,·T&gt;·<a·href="#"·class="tooltip"·data-notable-ty="Iter&lt;&#39;_,·T&gt;">ⓘ</a></h4></section></summary><div·class="docblock"><p>Creates·an·empty·slice·iterator.</p>
  
34 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·Iter·&lt;·<span·class="lifetime">'_</span>,·u8·&gt;·=·Default::default();34 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·Iter·&lt;·<span·class="lifetime">'_</span>,·u8·&gt;·=·Default::default();
35 <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+core::slice::Iter;%0A++++let+iter:+Iter+%3C+'_,+u8+%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>35 <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+core::slice::Iter;%0A++++let+iter:+Iter+%3C+'_,+u8+%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
36 </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/core/slice/iter.rs.html#134-142">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.DoubleEndedIt[·...·truncated·by·diffoscope;·len:·3751,·SHA:·7c31d22b154f84a4d659d2c1720bb1fb7c2a1ca48d16b6f73fa977faac5f9314·...·]/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">where36 </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="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#134-142">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.[·...·truncated·by·diffoscope;·len:·4372,·SHA:·82de8c159e7ee64245b05c9542967498defedaa6f3a70a4cea983d52466d80f8·...·]/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
37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes39 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
40 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where40 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····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,42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
43 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where43 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·9424,·SHA:·10936a18c9b193f835a8f615c54abeab1a413b5fb46fbda67fa8c732cd319d7f·...·]/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">where45 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10909,·SHA:·b65225ca35d472f0d7f0563154146dae22510e3f2458f3880d68f4e17bbc3e2c·...·]/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
46 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·&lt;<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/[·...·truncated·by·diffoscope;·len:·129,·SHA:·a3f2c920dec053386764ba39b5f9e70b94896c28fae69048f72e665437726f07·...·]/core/iter/traits/iterator/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,46 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·&lt;<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="https[·...·truncated·by·diffoscope;·len:·210,·SHA:·478004bdf80681d486272925b370aad1c2f3b65f6a4be086191bb800e589f4eb·...·]/core/iter/traits/iterator/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,
47 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.for_each"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/it[·...·truncated·by·diffoscope;·len:·118,·SHA:·4687851b756f6eaad94c7f91ba471a7ae7b5ba1565767805cde4b02be6b97dc1·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where47 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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.for_each"·class="method·trait-impl"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·199,·SHA:·af179a8adfef0d3d2a1f94b36d2175a8449e92551f49f7dd9c1e083892fea06a·...·]/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
48 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····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.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·886,·SHA:·4242d5ac3f2b8ea0b7f6ecc130a6f813948aea942798126affe77ccbc8b63e1c·...·]/core/primitive.bool.html">bool</a><div·class="where">where49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="https://[·...·truncated·by·diffoscope;·len:·1075,·SHA:·53a04c112adb037da6764d137663bb21f469230b912397a677bf01dc710e6378·...·]/core/primitive.bool.html">bool</a><div·class="where">where
50 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····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.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·967,·SHA:·4dcea22ef045342256d901b7e7ebaf21e67decd1fb08f214e382c3bf0933bdcb·...·]/core/primitive.bool.html">bool</a><div·class="where">where51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="https://[·...·truncated·by·diffoscope;·len:·1183,·SHA:·330bf793e80aedeb87af0ba6c38a70d7129807d65ecfc98c11fb4b7426fd41f3·...·]/core/primitive.bool.html">bool</a><div·class="where">where
52 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·1340,·SHA:·c4aee6d6b3ed3b7e4a557d922491f11ff0f389e13d8d2dcad1575846d9673093·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="https://[·...·truncated·by·diffoscope;·len:·1610,·SHA:·b4cf70b9b0ea17ba87bc405b4568680f948819c2f73fd8dd209f8e050c3cc3d2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
54 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterato[·...·truncated·by·diffoscope;·len:·998,·SHA:·f2b1aa305e192f6db2af5d3a0c9d52d7950a775555edb421581dafb578d29fab·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;&lt;<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="htt[·...·truncated·by·diffoscope;·len:·1214,·SHA:·1db498e7739c8e0f26b411cdfbfcfa538f71f810e682fc1e3b17107bbb712f79·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
56 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&lt;<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·295,·SHA:·56b9676483454909e7611cd29ab66e9c41408695aaf7df9190451b392a28be34·...·]/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·returns57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="https://[·...·truncated·by·diffoscope;·len:·403,·SHA:·d25ae2455486765766e2e7f40d60e9e71e8340357744251bb91b88acf6da5708·...·]/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
58 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.position"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slic[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e748de7dbae58d72f3b8dc996d73d3adb8e4c0523a1dfd2fd32f85e8d5ea2f7·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where58 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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.position"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·527,·SHA:·8ec7e95b6daf5ee49be592da931c4b19bfc757580c64882119cc9e30256ac5ed·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
59 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····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.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·1111,·SHA:·2b55572ee845a04a030801c5dcfcc1a085c4ff86181f56c36ae383b4838498b8·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where60 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="https://[·...·truncated·by·diffoscope;·len:·1354,·SHA:·534a2d6054c02cba32e66643e4456abdfa2ce769283f6292df1b3053f002f4d5·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
61 ····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.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·300,·SHA:·edf308226229819378f3a25ecbbf3e5853d3ad3882ff74c2154c119b01f4c119·...·]/core/primitive.bool.html">bool</a>,61 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="https://[·...·truncated·by·diffoscope;·len:·408,·SHA:·ce8604a82a19fdaa78bd618ad186a2568c361f614aa181837af6980890006838·...·]/core/primitive.bool.html">bool</a>,
62 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<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·its62 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
63 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.is_sorted_by"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core[·...·truncated·by·diffoscope;·len:·292,·SHA:·af6e8c749f85a1bb5f5a342e0a9d41a05134536986a037ab7ff180325b0c735c·...·]/core/primitive.bool.html">bool</a><div·class="where">where63 index.·<a·href="https://doc.rust-lang.org/1.83.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.is_sorted_by"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·400,·SHA:·09e6c6c2e682b4c679cfe55e15bf9030310b5693277bba8374996ea5095a95e2·...·]/core/primitive.bool.html">bool</a><div·class="where">where
64 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····F:·<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.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterato[·...·truncated·by·diffoscope;·len:·1453,·SHA:·ce157f3bca48fbea6fb63a51b3a5d6376509f431c10f9b593b4092469ccfd1c1·...·]/core/primitive.usize.html">usize</a>&gt;(65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;&lt;<a·class="struct"·href="struct.Iter.html"·title="struct·alloc::slice::Iter">Iter</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="htt[·...·truncated·by·diffoscope;·len:·1723,·SHA:·0b7376f5fd9f9c95a63e966c4d0b6ac3e1f42411b79ecfbc32bf30f1c601688e·...·]/core/primitive.usize.html">usize</a>&gt;(
66 ····&amp;mut·self,66 ····&amp;mut·self,
67 )·-&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">where67 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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
68 ····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:·911,·SHA:·9698e3e7bf787106aa36723fd3327602ab1e1f10fb1e918461d83d888749686a·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·1073,·SHA:·1978a6d18070dd61a906ddf84a6a323230f9831b9b7d900208714b08b4c6f1b8·...·]/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
69 ····Self:·<a·class="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·by69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
70 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where70 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where72 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where74 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····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>76 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
77 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where77 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
80 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.filter"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable[·...·truncated·by·diffoscope;·len:·367,·SHA:·23dd41689313f9c9e1b1e0cb7ab5135d9d8f954d6aca7f45b340e0848c8eb1ed·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where80 element.·<a·href="https://doc.rust-lang.org/1.83.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.filter"·class="method·trait-impl"><span·class="rightside"><span·[·...·truncated·by·diffoscope;·len:·475,·SHA:·75b871398db199b1d77f257c09d11b0d1986035e383b699208c0dec67e884a1b·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element82 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
83 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where83 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·863,·SHA:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
86 ····Self:·<a·class="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·as86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
87 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where87 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
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'>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>·methods88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
89 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See89 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
90 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where90 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where92 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where94 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·947,·SHA:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
97 ····Self:·<a·class="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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
99 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where99 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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,·but101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
102 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where102 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
103 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,104 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
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::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····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>·over107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
108 <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>,108 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
109 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where109 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
110 ····Self:·<a·class="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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
113 ····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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
114 ····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;,114 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
115 ····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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
116 ····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;,116 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
117 ····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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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;,119 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
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::Itera[·...·truncated·by·diffoscope;·len:·806,·SHA:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
121 ····T:·'a,121 ····T:·'a,
122 ····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;,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
123 ····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,123 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
124 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.124 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
125 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where125 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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,127 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
128 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where128 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
Max diff block lines reached; 146329/339726 bytes (43.07%) of diff not shown.
324 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.IterMut.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="Mutable·slice·iterator."><title>IterMut·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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="#">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_mut_slice"·title="as_mut_slice">as_mut_slice</a></li><li><a·href="#method.as_slice"·title="as_slice">as_slice</a></li><li><a·href="#method.into_slice"·title="into_slice">into_slice</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-IterMut%3C'_,+T%3E"·title="AsRef&#60;[T]&#62;">AsRef&#60;[T]&#62;</a></li><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><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-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>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">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/core/slice/iter.rs.html#186">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IterMut&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="Mutable·slice·iterator."><title>IterMut·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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="#">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_mut_slice"·title="as_mut_slice">as_mut_slice</a></li><li><a·href="#method.as_slice"·title="as_slice">as_slice</a></li><li><a·href="#method.into_slice"·title="into_slice">into_slice</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-IterMut%3C'_,+T%3E"·title="AsRef&#60;[T]&#62;">AsRef&#60;[T]&#62;</a></li><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><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-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>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">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="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#186">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·IterMut&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>Mutable·slice·iterator.</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>Mutable·slice·iterator.</p>
3 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.iter_mut"·title="method·slice::iter_mut"><code>iter_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.iter_mut"·title="method·slice::iter_mut"><code>iter_mut</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</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="comment">//·First,·we·declare·a·type·which·has·`iter_mut`·method·to·get·the·`IterMut`6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·First,·we·declare·a·type·which·has·`iter_mut`·method·to·get·the·`IterMut`
7 //·struct·(`&amp;[usize]`·here):7 //·struct·(`&amp;[usize]`·here):
8 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·<span·class="kw-2">&amp;mut·</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>];8 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>slice·=·<span·class="kw-2">&amp;mut·</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>];
  
9 <span·class="comment">//·Then,·we·iterate·over·it·and·increment·each·element·value:9 <span·class="comment">//·Then,·we·iterate·over·it·and·increment·each·element·value:
10 </span><span·class="kw">for·</span>element·<span·class="kw">in·</span>slice.iter_mut()·{10 </span><span·class="kw">for·</span>element·<span·class="kw">in·</span>slice.iter_mut()·{
11 ····<span·class="kw-2">*</span>element·+=·<span·class="number">1</span>;11 ····<span·class="kw-2">*</span>element·+=·<span·class="number">1</span>;
12 }12 }
  
13 <span·class="comment">//·We·now·have·"[2,·3,·4]":13 <span·class="comment">//·We·now·have·"[2,·3,·4]":
14 </span><span·class="macro">println!</span>(<span·class="string">"{slice:?}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+First,+we+declare+a+type+which+has+%60iter_mut%60+method+to+get+the+%60IterMut%60%0A//+struct+(%60%26%5Busize%5D%60+here):%0Afn+main()+%7B%0A++++let+mut+slice+=+%26mut+%5B1,+2,+3%5D;%0A++++%0A++++//+Then,+we+iterate+over+it+and+increment+each+element+value:%0A++++for+element+in+slice.iter_mut()+%7B%0A++++++++*element+%2B=+1;%0A++++%7D%0A++++%0A++++//+We+now+have+%22%5B2,+3,+4%5D%22:%0A++++println!(%22%7Bslice:?%7D%22);%0A%7D&amp;edition=2021"></a></div>14 </span><span·class="macro">println!</span>(<span·class="string">"{slice:?}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+First,+we+declare+a+type+which+has+%60iter_mut%60+method+to+get+the+%60IterMut%60%0A//+struct+(%60%26%5Busize%5D%60+here):%0Afn+main()+%7B%0A++++let+mut+slice+=+%26mut+%5B1,+2,+3%5D;%0A++++%0A++++//+Then,+we+iterate+over+it+and+increment+each+element+value:%0A++++for+element+in+slice.iter_mut()+%7B%0A++++++++*element+%2B=+1;%0A++++%7D%0A++++%0A++++//+We+now+have+%22%5B2,+3,+4%5D%22:%0A++++println!(%22%7Bslice:?%7D%22);%0A%7D&amp;edition=2021"></a></div>
15 </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/core/slice/iter.rs.html#211">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::slice::IterMut">IterMut</a>&lt;'a,·T&gt;</h3[·...·truncated·by·diffoscope;·len:·462,·SHA:·0f8ae48f62502870b143e198e2badd02ab5561852fc8b9563f3057bffd344a24·...·]/core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·subslice·of·the·original·data.</p>15 </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="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#211">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::slice::IterMut">I[·...·truncated·by·diffoscope;·len:·543,·SHA:·26b41ca47704938216c27ccefd43abcf94db8a371de260f6e2f24605d380a61b·...·]/core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·subslice·of·the·original·data.</p>
16 <p>To·avoid·creating·<code>&amp;mut</code>·references·that·alias,·this·is·forced16 <p>To·avoid·creating·<code>&amp;mut</code>·references·that·alias,·this·is·forced
17 to·consume·the·iterator.</p>17 to·consume·the·iterator.</p>
18 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>18 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
19 <p>Basic·usage:</p>19 <p>Basic·usage:</p>
  
20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·First,·we·declare·a·type·which·has·`iter_mut`·method·to·get·the·`IterMut`20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·First,·we·declare·a·type·which·has·`iter_mut`·method·to·get·the·`IterMut`
21 //·struct·(`&amp;[usize]`·here):21 //·struct·(`&amp;[usize]`·here):
Offset 39, 15 lines modifiedOffset 39, 15 lines modified
39 ····<span·class="comment">//·First·we·get·back·the·iterator:39 ····<span·class="comment">//·First·we·get·back·the·iterator:
40 ····</span><span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.iter_mut();40 ····</span><span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.iter_mut();
41 ····<span·class="comment">//·We·change·the·value·of·the·first·element·of·the·slice·returned·by·the·`next`·method:41 ····<span·class="comment">//·We·change·the·value·of·the·first·element·of·the·slice·returned·by·the·`next`·method:
42 ····</span><span·class="kw-2">*</span>iter.next().unwrap()·+=·<span·class="number">1</span>;42 ····</span><span·class="kw-2">*</span>iter.next().unwrap()·+=·<span·class="number">1</span>;
43 }43 }
44 <span·class="comment">//·Now·slice·is·"[2,·2,·3]":44 <span·class="comment">//·Now·slice·is·"[2,·2,·3]":
45 </span><span·class="macro">println!</span>(<span·class="string">"{slice:?}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+First,+we+declare+a+type+which+has+%60iter_mut%60+method+to+get+the+%60IterMut%60%0A//+struct+(%60%26%5Busize%5D%60+here):%0Afn+main()+%7B%0A++++let+mut+slice+=+%26mut+%5B1,+2,+3%5D;%0A++++%0A++++%7B%0A++++++++//+Then,+we+get+the+iterator:%0A++++++++let+mut+iter+=+slice.iter_mut();%0A++++++++//+We+move+to+next+element:%0A++++++++iter.next();%0A++++++++//+So+if+we+print+what+%60into_slice%60+method+returns+here,+we+have+%22%5B2,+3%5D%22:%0A++++++++println!(%22%7B:?%7D%22,+iter.into_slice());%0A++++%7D%0A++++%0A++++//+Now+let's+modify+a+value+of+the+slice:%0A++++%7B%0A++++++++//+First+we+get+back+the+iterator:%0A++++++++let+mut+iter+=+slice.iter_mut();%0A++++++++//+We+change+the+value+of+the+first+element+of+the+slice+returned+by+the+%60next%60+method:%0A++++++++*iter.next().unwrap()+%2B=+1;%0A++++%7D%0A++++//+Now+slice+is+%22%5B2,+2,+3%5D%22:%0A++++println!(%22%7Bslice:?%7D%22);%0A%7D&amp;edition=2021"></a></div>45 </span><span·class="macro">println!</span>(<span·class="string">"{slice:?}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·title="Run·code"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A//+First,+we+declare+a+type+which+has+%60iter_mut%60+method+to+get+the+%60IterMut%60%0A//+struct+(%60%26%5Busize%5D%60+here):%0Afn+main()+%7B%0A++++let+mut+slice+=+%26mut+%5B1,+2,+3%5D;%0A++++%0A++++%7B%0A++++++++//+Then,+we+get+the+iterator:%0A++++++++let+mut+iter+=+slice.iter_mut();%0A++++++++//+We+move+to+next+element:%0A++++++++iter.next();%0A++++++++//+So+if+we+print+what+%60into_slice%60+method+returns+here,+we+have+%22%5B2,+3%5D%22:%0A++++++++println!(%22%7B:?%7D%22,+iter.into_slice());%0A++++%7D%0A++++%0A++++//+Now+let's+modify+a+value+of+the+slice:%0A++++%7B%0A++++++++//+First+we+get+back+the+iterator:%0A++++++++let+mut+iter+=+slice.iter_mut();%0A++++++++//+We+change+the+value+of+the+first+element+of+the+slice+returned+by+the+%60next%60+method:%0A++++++++*iter.next().unwrap()+%2B=+1;%0A++++%7D%0A++++//+Now+slice+is+%22%5B2,+2,+3%5D%22:%0A++++println!(%22%7Bslice:?%7D%22);%0A%7D&amp;edition=2021"></a></div>
46 </div></details><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.53.0">1.53.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#307">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>Views·the·underlying·data·as·a·subslice·of·the·original·data.</p>46 </div></details><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.53.0">1.53.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#307">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.83.0/core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·subslice·of·the·original·data.</p>
47 <p>To·avoid·creating·<code>&amp;mut·[T]</code>·references·that·alias,·the·returned·slice47 <p>To·avoid·creating·<code>&amp;mut·[T]</code>·references·that·alias,·the·returned·slice
48 borrows·its·lifetime·from·the·iterator·the·method·is·applied·on.</p>48 borrows·its·lifetime·from·the·iterator·the·method·is·applied·on.</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 <p>Basic·usage:</p>50 <p>Basic·usage:</p>
  
51 <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="kw-2">&amp;mut·</span>[usize]·=·<span·class="kw-2">&amp;mut·</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>];51 <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="kw-2">&amp;mut·</span>[usize]·=·<span·class="kw-2">&amp;mut·</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>];
  
Offset 56, 15 lines modifiedOffset 56, 15 lines modified
56 <span·class="comment">//·So·if·we·check·what·the·`as_slice`·method·returns·here,·we·have·"[1,·2,·3]":56 <span·class="comment">//·So·if·we·check·what·the·`as_slice`·method·returns·here,·we·have·"[1,·2,·3]":
57 </span><span·class="macro">assert_eq!</span>(iter.as_slice(),·<span·class="kw-2">&amp;</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>]);57 </span><span·class="macro">assert_eq!</span>(iter.as_slice(),·<span·class="kw-2">&amp;</span>[<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>]);
  
58 <span·class="comment">//·Next,·we·move·to·the·second·element·of·the·slice:58 <span·class="comment">//·Next,·we·move·to·the·second·element·of·the·slice:
59 </span>iter.next();59 </span>iter.next();
60 <span·class="comment">//·Now·`as_slice`·returns·"[2,·3]":60 <span·class="comment">//·Now·`as_slice`·returns·"[2,·3]":
61 </span><span·class="macro">assert_eq!</span>(iter.as_slice(),·<span·class="kw-2">&amp;</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++++let+mut+slice:+%26mut+%5Busize%5D+=+%26mut+%5B1,+2,+3%5D;%0A++++%0A++++//+First,+we+get+the+iterator:%0A++++let+mut+iter+=+slice.iter_mut();%0A++++//+So+if+we+check+what+the+%60as_slice%60+method+returns+here,+we+have+%22%5B1,+2,+3%5D%22:%0A++++assert_eq!(iter.as_slice(),+%26%5B1,+2,+3%5D);%0A++++%0A++++//+Next,+we+move+to+the+second+element+of+the+slice:%0A++++iter.next();%0A++++//+Now+%60as_slice%60+returns+%22%5B2,+3%5D%22:%0A++++assert_eq!(iter.as_slice(),+%26%5B2,+3%5D);%0A%7D&amp;edition=2021"></a></div>61 </span><span·class="macro">assert_eq!</span>(iter.as_slice(),·<span·class="kw-2">&amp;</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++++let+mut+slice:+%26mut+%5Busize%5D+=+%26mut+%5B1,+2,+3%5D;%0A++++%0A++++//+First,+we+get+the+iterator:%0A++++let+mut+iter+=+slice.iter_mut();%0A++++//+So+if+we+check+what+the+%60as_slice%60+method+returns+here,+we+have+%22%5B1,+2,+3%5D%22:%0A++++assert_eq!(iter.as_slice(),+%26%5B1,+2,+3%5D);%0A++++%0A++++//+Next,+we+move+to+the+second+element+of+the+slice:%0A++++iter.next();%0A++++//+Now+%60as_slice%60+returns+%22%5B2,+3%5D%22:%0A++++assert_eq!(iter.as_slice(),+%26%5B2,+3%5D);%0A%7D&amp;edition=2021"></a></div>
62 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_mut_slice"·class="method"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#345">source</a><h4·class="code-header">pub·fn·<a·href="#method.as_mut_slice"·class="fn">as_mut_slice</a>(&amp;mut·self)·-&gt;·&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>slice_iter_mut_as_mut_slice</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/93079">#93079</a>)</span></div></span></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·mutable·subslice·of·the·original·data.</p>62 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_mut_slice"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#345">source</a><h4·class="code-header">pub·fn·<a·href="#method.as_mut_slice"·class="fn">as_mut_slice</a>(&amp;mut·self)·-&gt;·&amp;mut·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>slice_iter_mut_as_mut_slice</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/93079">#93079</a>)</span></div></span></summary><div·class="docblock"><p>Views·the·underlying·data·as·a·mutable·subslice·of·the·original·data.</p>
63 <p>To·avoid·creating·<code>&amp;mut·[T]</code>·references·that·alias,·the·returned·slice63 <p>To·avoid·creating·<code>&amp;mut·[T]</code>·references·that·alias,·the·returned·slice
64 borrows·its·lifetime·from·the·iterator·the·method·is·applied·on.</p>64 borrows·its·lifetime·from·the·iterator·the·method·is·applied·on.</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 <p>Basic·usage:</p>66 <p>Basic·usage:</p>
  
67 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_iter_mut_as_mut_slice)]67 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_iter_mut_as_mut_slice)]
  
Offset 82, 220 lines modifiedOffset 82, 220 lines modified
82 mut_slice[<span·class="number">2</span>]·=·<span·class="number">5</span>;82 mut_slice[<span·class="number">2</span>]·=·<span·class="number">5</span>;
  
83 <span·class="comment">//·Next,·we·can·move·to·the·second·element·of·the·slice,·checking·that83 <span·class="comment">//·Next,·we·can·move·to·the·second·element·of·the·slice,·checking·that
84 //·it·yields·the·value·we·just·wrote:84 //·it·yields·the·value·we·just·wrote:
85 </span><span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;mut·</span><span·class="number">4</span>));85 </span><span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;mut·</span><span·class="number">4</span>));
86 <span·class="comment">//·Now·`as_mut_slice`·returns·"[2,·5]":86 <span·class="comment">//·Now·`as_mut_slice`·returns·"[2,·5]":
87 </span><span·class="macro">assert_eq!</span>(iter.as_mut_slice(),·<span·class="kw-2">&amp;mut·</span>[<span·class="number">2</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%0A%23!%5Bfeature(slice_iter_mut_as_mut_slice)%5D%0A%0Afn+main()+%7B%0A++++let+mut+slice:+%26mut+%5Busize%5D+=+%26mut+%5B1,+2,+3%5D;%0A++++%0A++++//+First,+we+get+the+iterator:%0A++++let+mut+iter+=+slice.iter_mut();%0A++++//+Then,+we+get+a+mutable+slice+from+it:%0A++++let+mut_slice+=+iter.as_mut_slice();%0A++++//+So+if+we+check+what+the+%60as_mut_slice%60+method+returned,+we+have+%22%5B1,+2,+3%5D%22:%0A++++assert_eq!(mut_slice,+%26mut+%5B1,+2,+3%5D);%0A++++%0A++++//+We+can+use+it+to+mutate+the+slice:%0A++++mut_slice%5B0%5D+=+4;%0A++++mut_slice%5B2%5D+=+5;%0A++++%0A++++//+Next,+we+can+move+to+the+second+element+of+the+slice,+checking+that%0A++++//+it+yields+the+value+we+just+wrote:%0A++++assert_eq!(iter.next(),+Some(%26mut+4));%0A++++//+Now+%60as_mut_slice%60+returns+%22%5B2,+5%5D%22:%0A++++assert_eq!(iter.as_mut_slice(),+%26mut+%5B2,+5%5D);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>87 </span><span·class="macro">assert_eq!</span>(iter.as_mut_slice(),·<span·class="kw-2">&amp;mut·</span>[<span·class="number">2</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%0A%23!%5Bfeature(slice_iter_mut_as_mut_slice)%5D%0A%0Afn+main()+%7B%0A++++let+mut+slice:+%26mut+%5Busize%5D+=+%26mut+%5B1,+2,+3%5D;%0A++++%0A++++//+First,+we+get+the+iterator:%0A++++let+mut+iter+=+slice.iter_mut();%0A++++//+Then,+we+get+a+mutable+slice+from+it:%0A++++let+mut_slice+=+iter.as_mut_slice();%0A++++//+So+if+we+check+what+the+%60as_mut_slice%60+method+returned,+we+have+%22%5B1,+2,+3%5D%22:%0A++++assert_eq!(mut_slice,+%26mut+%5B1,+2,+3%5D);%0A++++%0A++++//+We+can+use+it+to+mutate+the+slice:%0A++++mut_slice%5B0%5D+=+4;%0A++++mut_slice%5B2%5D+=+5;%0A++++%0A++++//+Next,+we+can+move+to+the+second+element+of+the+slice,+checking+that%0A++++//+it+yields+the+value+we+just+wrote:%0A++++assert_eq!(iter.next(),+Some(%26mut+4));%0A++++//+Now+%60as_mut_slice%60+returns+%22%5B2,+5%5D%22:%0A++++assert_eq!(iter.as_mut_slice(),+%26mut+%5B2,+5%5D);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
88 </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-IterMut%3C'_,+T%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.53.0">1.53.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#354">source</a></span><a·href="#impl-AsRef%3C%5BT%5D%3E-for-IterMut%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::conve[·...·truncated·by·diffoscope;·len:·1089,·SHA:·f062c259cb1d2449a22ec5886c1f291b9c59228bddfd1bb67d7c87a09c138e63·...·]/src/core/slice/iter.rs.html#200">source</a></span><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&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::slice::IterMut">IterMut</a>&lt;'_,·T&gt;<div·class="where">where88 </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-IterMut%3C'_,+T%3E"·class="impl"><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.83.0/src/core/slice/iter.rs.html#354">source</a></span><a·href="#impl-AsRef%3C%5BT%5D%3E-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.83.0/c[·...·truncated·by·diffoscope;·len:·1278,·SHA:·c1e8b9908ce100917fdfc2e351cc18bfea96afeeb132da6976f31b7ad4703549·...·]/src/core/slice/iter.rs.html#200">source</a></span><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&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::slice::IterMut">IterMut</a>&lt;'_,·T&gt;<div·class="where">where
89 ····T:·<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#201">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.h[·...·truncated·by·diffoscope;·len:·1474,·SHA:·0c23a8a7797700900d10dc4a7ae17a712505823b8e30bf99e6e98c63c28e3bb3·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'_,·T&gt;·<a·href="#"·class="tooltip"·data-notable-ty="IterMut&lt;&#39;_,·T&gt;">ⓘ</a></h4></section></summary><div·class="docblock"><p>Creates·an·empty·slice·iterator.</p>89 ····T:·<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.83.0/src/core/slice/iter.rs.html#201">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[·...·truncated·by·diffoscope;·len:·1663,·SHA:·d9e6ce2a35967cdd717ccac4fc7380c6827a4301718bfb348d09f9482332fcb2·...·]/core/default/trait.Default.html#tymethod.default"·class="fn">default</a>()·-&gt;·<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'_,·T&gt;·<a·href="#"·class="tooltip"·data-notable-ty="IterMut&lt;&#39;_,·T&gt;">ⓘ</a></h4></section></summary><div·class="docblock"><p>Creates·an·empty·slice·iterator.</p>
  
90 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·IterMut·&lt;·<span·class="lifetime">'_</span>,·u8·&gt;·=·Default::default();90 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·IterMut·&lt;·<span·class="lifetime">'_</span>,·u8·&gt;·=·Default::default();
91 <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+core::slice::IterMut;%0A++++let+iter:+IterMut+%3C+'_,+u8+%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>91 <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+core::slice::IterMut;%0A++++let+iter:+IterMut+%3C+'_,+u8+%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A%7D&amp;edition=2021"></a></div>
92 </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/core/slice/iter.rs.html#368">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.DoubleEndedIte[·...·truncated·by·diffoscope;·len:·3755,·SHA:·810b0a9fae7f0b816e43abdc8b2c78dd40f3bc2bf4e7aba7dc9090e8fabe6a2f·...·]/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">where92 </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="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#368">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.8[·...·truncated·by·diffoscope;·len:·4376,·SHA:·ee3af7200c4ce80a75648865b1b0cd519fe2da07506807482b51700da6f0917d·...·]/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
93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes95 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
96 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where96 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
97 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
99 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where99 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·9422,·SHA:·484da8e18814fadf18662651d34c804d98bf425b9f6d7e1a2da95134b6119ffd·...·]/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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10907,·SHA:·99fcfead15e75dc584381a2fec3afd1619aab786d5dc149fe4877f0f66ed10d8·...·]/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 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·&lt;<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/[·...·truncated·by·diffoscope;·len:·138,·SHA:·1726cb1f75e225c73186e52b0f78a7110a1f97686d3cf2aff9a59663483ce43d·...·]/core/iter/traits/iterator/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·&lt;<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·hr[·...·truncated·by·diffoscope;·len:·219,·SHA:·9541ceea13138bd49d4b093ffcebbe6fec0371118ef6121aa56f11b9711e108c·...·]/core/iter/traits/iterator/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="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/it[·...·truncated·by·diffoscope;·len:·114,·SHA:·0300fad5b7b91f5fc9a79f2aa718a642d4e207a6ad45a27442db0c075437b37c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where103 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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.for_each"·class="method·trait-impl"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·195,·SHA:·cdb234668d422fa13fb1854224068e9d24cf73d50fd81573dccbe116e0edc28a·...·]/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
104 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····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.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/ite[·...·truncated·by·diffoscope;·len:·891,·SHA:·05ea8c6f3b6f2b5d37d6144f0bcac369955205f151b10a0ac3bf7c80f1e65398·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href=[·...·truncated·by·diffoscope;·len:·1080,·SHA:·ddcd19fe40ead490b719630f4e8d91b0654412fa8acc4b63aed14096a02dc6a1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
106 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
107 ····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.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/ite[·...·truncated·by·diffoscope;·len:·972,·SHA:·76a9881b1024f788a78f5e02042bd67c01b469f302be1c31e6a5c5c2c9cc22e5·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href=[·...·truncated·by·diffoscope;·len:·1188,·SHA:·5957abc0bcf229f0863d736206677f70bbfd23560aa6b99a65c131ec4271eaf3·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····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.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/ite[·...·truncated·by·diffoscope;·len:·826,·SHA:·bc78642f1318fb7b594c19c87ee1426ec8b98afd9bd9875bbddeda91b96bc1a2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.find"·class="fn">find</a>&lt;P&gt;(109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href=[·...·truncated·by·diffoscope;·len:·1015,·SHA:·219045d3d6ad718085fea85a1e2379810403fe3c2ed4fb1af1b6fdb8d29d1dfb·...·]/core/iter/traits/iterator/trait.Iterator.html#method.find"·class="fn">find</a>&lt;P&gt;(
110 ····&amp;mut·self,110 ····&amp;mut·self,
111 ····predicate:·P,111 ····predicate:·P,
112 )·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/iterator/tra[·...·truncated·by·diffoscope;·len:·126,·SHA:·722137f0d3448f9dfd435195685c6f55e0d8964bc9b9b8cecada2a16f470a7ac·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="https://[·...·truncated·by·diffoscope;·len:·207,·SHA:·90304432a74d09954e433c2ff485f920ce6b7653403cc5c086b54e71507d8fbb·...·]/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 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····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.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/trait[·...·truncated·by·diffoscope;·len:·1003,·SHA:·a061b7936681e4bd8b878a94a643997fd9eefb5a54fdf051b33e50de8ab4cb23·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where114 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;&lt;<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·[·...·truncated·by·diffoscope;·len:·1219,·SHA:·8733159fc953f2f6bbe1f9c7cbfaf622b7e1f2756c9b54f9ad1e751bb52ee928·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
115 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····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.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/ite[·...·truncated·by·diffoscope;·len:·304,·SHA:·ec316d13c7bf58981682bee1ad803d97e6d63982605b0a9e77f7e70f5e3f6612·...·]/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·returns116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href=[·...·truncated·by·diffoscope;·len:·412,·SHA:·7204a28f981a790293c66f8a525d2d37a4606894f240e586ac070e1017eea56c·...·]/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
117 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.position"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slic[·...·truncated·by·diffoscope;·len:·388,·SHA:·002620d04aa61ea55dcff1c8eba9cdd98bd6c187762773d4300fe82e55fff497·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where117 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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.position"·class="method·trait-impl"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·523,·SHA:·60808cf23b91e3696358ba34e8dd4d78cc70321675dc7bc88df1d4970ac02f2b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
118 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/ite[·...·truncated·by·diffoscope;·len:·1116,·SHA:·6df1a96df0372702035224420c03311232bcdc9963b8b17f34ea135d8d59eeea·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where119 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href=[·...·truncated·by·diffoscope;·len:·1359,·SHA:·ffcd3bcfd1dacbd53936a916c2b1a4b8f4d0a8a37c6f2cf24a2579d22baadd17·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
120 ····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.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/traits/ite[·...·truncated·by·diffoscope;·len:·309,·SHA:·0f9212063fb760cda70d9fe0f39b02b111e229670df58c56b1480f53979bbfe6·...·]/core/primitive.bool.html">bool</a>,120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&lt;<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;·as·<a·class="trait"·href=[·...·truncated·by·diffoscope;·len:·417,·SHA:·cea5bbdde8b5817e59302627c059e5c7035a635b2c5e10f3fda1412fd5d9d242·...·]/core/primitive.bool.html">bool</a>,
121 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<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·its121 ····<a·class="struct"·href="struct.IterMut.html"·title="struct·alloc::slice::IterMut">IterMut</a>&lt;'a,·T&gt;:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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="../../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:·a873b4c75c8a968436dc62b4e87a7580d30de40963baff3fbee967b0a733b9e4·...·]/core/primitive.usize.html">usize</a>&gt;(122 index.·<a·href="https://doc.rust-lang.org/1.83.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:·4cd00b45d707d9c865878542bb65b20c17fe022435c754e0ed26a40c7f40e27b·...·]/core/primitive.usize.html">usize</a>&gt;(
123 ····&amp;mut·self,123 ····&amp;mut·self,
124 )·-&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">where124 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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
125 ····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:·911,·SHA:·9698e3e7bf787106aa36723fd3327602ab1e1f10fb1e918461d83d888749686a·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·1073,·SHA:·1978a6d18070dd61a906ddf84a6a323230f9831b9b7d900208714b08b4c6f1b8·...·]/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
126 ····Self:·<a·class="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·by126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
127 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where127 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
128 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,128 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
129 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where129 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
130 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,130 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
131 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where131 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
132 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,132 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
133 ····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>133 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
134 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where134 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
135 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,135 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
136 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each136 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
137 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.filter"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable[·...·truncated·by·diffoscope;·len:·367,·SHA:·23dd41689313f9c9e1b1e0cb7ab5135d9d8f954d6aca7f45b340e0848c8eb1ed·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where137 element.·<a·href="https://doc.rust-lang.org/1.83.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.filter"·class="method·trait-impl"><span·class="rightside"><span·[·...·truncated·by·diffoscope;·len:·475,·SHA:·75b871398db199b1d77f257c09d11b0d1986035e383b699208c0dec67e884a1b·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
138 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,138 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
139 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element139 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
140 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where140 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
141 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,141 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
142 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where142 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
143 ····Self:·<a·class="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·as143 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
144 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where144 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
145 ····Self:·<a·class="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>·methods145 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
146 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See146 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
147 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where147 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
148 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,148 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 156693/332063 bytes (47.19%) of diff not shown.
319 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RChunks.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·over·a·slice·in·(non-overlapping)·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·end·of·the·slice."><title>RChunks·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RChunks</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-RChunks%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RChunks%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunks%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunks%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunks%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunks%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-RChunks%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-RChunks%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunks%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RChunks%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RChunks%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RChunks%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RChunks%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">RChunks</span><button·id="copy-path"·title="Copy·item·path·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#2572">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RChunks&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)·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·end·of·the·slice."><title>RChunks·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RChunks</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-RChunks%3C'_,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RChunks%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunks%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunks%3C'_,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunks%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunks%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-RChunks%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-RChunks%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunks%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RChunks%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RChunks%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RChunks%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RChunks%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">RChunks</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/slice/iter.rs.html#2572">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RChunks&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)·chunks·(<code>chunk_size</code>·elements·at·a2 ····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)·chunks·(<code>chunk_size</code>·elements·at·a
3 time),·starting·at·the·end·of·the·slice.</p>3 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="../../core/primitive.slice.html#method.rchunks"·title="method·slice::rchunks"><code>rchunks</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.rchunks"·title="method·slice::rchunks"><code>rchunks</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.83.0/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="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>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><span·class="kw-2">mut·</span>iter·=·slice.rchunks(<span·class="number">2</span>);9 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.rchunks(<span·class="number">2</span>);
10 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'e'</span>,·<span·class="string">'m'</span>][..]));10 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'e'</span>,·<span·class="string">'m'</span>][..]));
11 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'o'</span>,·<span·class="string">'r'</span>][..]));11 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'o'</span>,·<span·class="string">'r'</span>][..]));
12 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>][..]));12 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>][..]));
13 <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'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.rchunks(2);%0A++++assert_eq!(iter.next(),+Some(%26%5B'e',+'m'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'o',+'r'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'l'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>13 <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'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.rchunks(2);%0A++++assert_eq!(iter.next(),+Some(%26%5B'e',+'m'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'o',+'r'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'l'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>
14 </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-RChunks%3C'_,+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#2586">source</a></span><a·href="#impl-Clone-for-RChunks%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:·1794,·SHA:·e79c52613f909786269bd19b02f9fcee00d87400cad19c4d452ff8d52e9b4b6c·...·]/src/core/slice/iter.rs.html#2569">source</a></span><a·href="#impl-Debug-for-RChunks%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.RChunks.html"·title="struct·alloc::slice::RChunks">RChunks</a>&lt;'a,·T&gt;<div·class="where">where14 </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-RChunks%3C'_,+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.83.0/src/core/slice/iter.rs.html#2586">source</a></span><a·href="#impl-Clone-for-RChunks%3C'_,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/tr[·...·truncated·by·diffoscope;·len:·2037,·SHA:·2c765ee44495851b543def015c0e21594625e06891f8cc3494f695be02d14409·...·]/src/core/slice/iter.rs.html#2569">source</a></span><a·href="#impl-Debug-for-RChunks%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.RChunks.html"·title="struct·alloc::slice::RChunks">RChunks</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="../../src/core/slice/iter.rs.html#2569">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:·5155,·SHA:·d2c3f5408db062351998fbca98504119bdc0582edd5d388277be12044cf8898e·...·]/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 ····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.83.0/src/core/slice/iter.rs.html#2569">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:·5884,·SHA:·9c928977d829d2569a4e303ebceaba75a1f878582793e3d2157e06e6bed462b4·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes18 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
22 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·9108,·SHA:·57a046d25516845876f67bed2b830e3194fca694f77194359550760a364d8de5·...·]/core/primitive.usize.html">usize</a>&gt;(24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10458,·SHA:·a1dc476625e012059d59ad7b625e47845b4a506018175c3f63c245953c490863·...·]/core/primitive.usize.html">usize</a>&gt;(
25 ····&amp;mut·self,25 ····&amp;mut·self,
26 )·-&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">where26 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/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="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
29 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>35 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
39 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
48 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
60 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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,·but62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,65 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
66 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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>·over68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
77 ····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;,77 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····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;,80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
82 ····T:·'a,82 ····T:·'a,
83 ····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;,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
84 ····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,84 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.85 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
86 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where86 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
92 ····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·returns92 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
93 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where93 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the96 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
97 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where97 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where100 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(103 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,105 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where106 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the109 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where116 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where122 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,124 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
125 ····&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·returns125 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 88758/326973 bytes (27.15%) of diff not shown.
325 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RChunksExact.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·a·slice·in·(non-overlapping)·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·end·of·the·slice."><title>RChunksExact·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RChunks<wbr>Exact</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.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-RChunksExact%3C'a,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RChunksExact%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunksExact%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunksExact%3C'a,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunksExact%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunksExact%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-RChunksExact%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-RChunksExact%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunksExact%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RChunksExact%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RChunksExact%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RChunksExact%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RChunksExact%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">RChunksExact</span><button·id="copy-path"·title="Copy·item·path·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#2942">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RChunksExact&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)·chunks·(`chunk_size`·elements·at·a·time),·starting·at·the·end·of·the·slice."><title>RChunksExact·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (built»    from»a»       source» tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RChunks<wbr>Exact</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.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-RChunksExact%3C'a,+T%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RChunksExact%3C'a,+T%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunksExact%3C'a,+T%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunksExact%3C'a,+T%3E"·title="ExactSizeIterator">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunksExact%3C'_,+T%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunksExact%3C'a,+T%3E"·title="Iterator">Iterator</a></li><li><a·href="#impl-TrustedLen-for-RChunksExact%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-RChunksExact%3C'a,+T%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunksExact%3C'a,+T%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RChunksExact%3C'a,+T%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RChunksExact%3C'a,+T%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RChunksExact%3C'a,+T%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RChunksExact%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">RChunksExact</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/slice/iter.rs.html#2942">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RChunksExact&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)·chunks·(<code>chunk_size</code>·elements·at·a2 ····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)·chunks·(<code>chunk_size</code>·elements·at·a
3 time),·starting·at·the·end·of·the·slice.</p>3 time),·starting·at·the·end·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>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from5 up·to·<code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from
6 the·<a·href="struct.RChunksExact.html#method.remainder"·title="method·alloc::slice::RChunksExact::remainder"><code>remainder</code></a>·function·from·the·iterator.</p>6 the·<a·href="struct.RChunksExact.html#method.remainder"·title="method·alloc::slice::RChunksExact::remainder"><code>remainder</code></a>·function·from·the·iterator.</p>
7 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.rchunks_exact"·title="method·slice::rchunks_exact"><code>rchunks_exact</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.rchunks_exact"·title="method·slice::rchunks_exact"><code>rchunks_exact</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.83.0/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>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>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><span·class="kw-2">mut·</span>iter·=·slice.rchunks_exact(<span·class="number">2</span>);10 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.rchunks_exact(<span·class="number">2</span>);
11 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'e'</span>,·<span·class="string">'m'</span>][..]));11 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'e'</span>,·<span·class="string">'m'</span>][..]));
12 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'o'</span>,·<span·class="string">'r'</span>][..]));12 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'o'</span>,·<span·class="string">'r'</span>][..]));
13 <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'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.rchunks_exact(2);%0A++++assert_eq!(iter.next(),+Some(%26%5B'e',+'m'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'o',+'r'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>13 <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'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.rchunks_exact(2);%0A++++assert_eq!(iter.next(),+Some(%26%5B'e',+'m'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B'o',+'r'%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&amp;edition=2021"></a></div>
14 </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-RChunksExact%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2948">source</a><a·href="#impl-RChunksExact%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="struct"·href="struct.RChunksExact.html"·title="struct·alloc::slice::RChunksExact">RChunksExact[·...·truncated·by·diffoscope;·len:·484,·SHA:·bca8ebbd837c7e510e070ff58ec0720de7e1023d9f6a1bd4e5bff9613eb7d464·...·]/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·be14 </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-RChunksExact%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#2948">source</a><a·href="#impl-RChunksExact%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="struct"·href="struct.RChunksExact.html"·title="struct·alloc::slice:[·...·truncated·by·diffoscope;·len:·565,·SHA:·63b3e0df3ea218513fc7e74556f65a13127b2098feea223568a68414643d812d·...·]/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
15 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>15 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>
16 elements.</p>16 elements.</p>
17 <h5·id="example-1"><a·class="doc-anchor"·href="#example-1">§</a>Example</h5>17 <h5·id="example-1"><a·class="doc-anchor"·href="#example-1">§</a>Example</h5>
18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</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>];18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</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>];
19 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.rchunks_exact(<span·class="number">2</span>);19 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.rchunks_exact(<span·class="number">2</span>);
20 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>][..]);20 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>][..]);
21 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'e'</span>,·<span·class="string">'m'</span>][..]));21 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'e'</span>,·<span·class="string">'m'</span>][..]));
22 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>][..]);22 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>][..]);
23 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'o'</span>,·<span·class="string">'r'</span>][..]));23 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span>[<span·class="string">'o'</span>,·<span·class="string">'r'</span>][..]));
24 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>][..]);24 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>][..]);
25 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">None</span>);25 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">None</span>);
26 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'l'</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'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.rchunks_exact(2);%0A++++assert_eq!(iter.remainder(),+%26%5B'l'%5D%5B..%5D);%0A++++assert_eq!(iter.next(),+Some(%26%5B'e',+'m'%5D%5B..%5D));%0A++++assert_eq!(iter.remainder(),+%26%5B'l'%5D%5B..%5D);%0A++++assert_eq!(iter.next(),+Some(%26%5B'o',+'r'%5D%5B..%5D));%0A++++assert_eq!(iter.remainder(),+%26%5B'l'%5D%5B..%5D);%0A++++assert_eq!(iter.next(),+None);%0A++++assert_eq!(iter.remainder(),+%26%5B'l'%5D%5B..%5D);%0A%7D&amp;edition=2021"></a></div>26 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'l'</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'l',+'o',+'r',+'e',+'m'%5D;%0A++++let+mut+iter+=+slice.rchunks_exact(2);%0A++++assert_eq!(iter.remainder(),+%26%5B'l'%5D%5B..%5D);%0A++++assert_eq!(iter.next(),+Some(%26%5B'e',+'m'%5D%5B..%5D));%0A++++assert_eq!(iter.remainder(),+%26%5B'l'%5D%5B..%5D);%0A++++assert_eq!(iter.next(),+Some(%26%5B'o',+'r'%5D%5B..%5D));%0A++++assert_eq!(iter.remainder(),+%26%5B'l'%5D%5B..%5D);%0A++++assert_eq!(iter.next(),+None);%0A++++assert_eq!(iter.remainder(),+%26%5B'l'%5D%5B..%5D);%0A%7D&amp;edition=2021"></a></div>
27 </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-RChunksExact%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#2983">source</a></span><a·href="#impl-Clone-for-RChunksExact%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clo[·...·truncated·by·diffoscope;·len:·1843,·SHA:·977c2b6f1b4c0f52a5fb47b3c4abe46d5c1732b4ac7ddd7a511de8b3e735f28b·...·]/src/core/slice/iter.rs.html#2939">source</a></span><a·href="#impl-Debug-for-RChunksExact%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.RChunksExact.html"·title="struct·alloc::slice::RChunksExact">RChunksExact</a>&lt;'a,·T&gt;<div·class="where">where27 </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-RChunksExact%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.83.0/src/core/slice/iter.rs.html#2983">source</a></span><a·href="#impl-Clone-for-RChunksExact%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.83.0/core[·...·truncated·by·diffoscope;·len:·2086,·SHA:·7c57204e20429b410c01a05b72eb0c2f491b8dd4af411f774b86d4a3290b2fcf·...·]/src/core/slice/iter.rs.html#2939">source</a></span><a·href="#impl-Debug-for-RChunksExact%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.RChunksExact.html"·title="struct·alloc::slice::RChunksExact">RChunksExact</a>&lt;'a,·T&gt;<div·class="where">where
28 ····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#2939">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:·2429,·SHA:·e7fe3afb7914798e9c5696471cf10c64696ce3c9ce649187eb881794cb2eb288·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(28 ····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.83.0/src/core/slice/iter.rs.html#2939">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:·2753,·SHA:·30e2c1160d105c47b6ebc4bf0d275deed2b047214e4dc9a1ffb511efe1273041·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(
29 ····&amp;mut·self,29 ····&amp;mut·self,
30 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,30 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
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.RChunksExact.html"·title="struct·alloc::slice::RChunksExact">RChunksExact</a>&lt;'a,·T&gt;·as·<a·class="trait"·href="../../core/iter/trai[·...·truncated·by·diffoscope;·len:·2290,·SHA:·cc6e14c0fdbd15d453e1012415fa0ac1b97c516e7b21709714575d510b1dcc11·...·]/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">where31 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&lt;<a·class="struct"·href="struct.RChunksExact.html"·title="struct·alloc::slice::RChunksExact">RChunksExact</a>&lt;'a,·T&gt;·as·<a·class="trait"[·...·truncated·by·diffoscope;·len:·2668,·SHA:·87ddd807916aea2bdcb500d68d2a26f283c3d2fe37b4dc4dcae87e37f013cfc5·...·]/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
32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
34 ····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·takes34 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
35 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where35 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
38 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where38 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·9181,·SHA:·cb8facd5309f943e2b4b3149bb698d92888197769325ff7c1d3ca83baf36eee7·...·]/core/primitive.usize.html">usize</a>&gt;(40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10531,·SHA:·00cd1d545583d0edaa97d680c87aa8b637c076e2586277e4973488665fdd454c·...·]/core/primitive.usize.html">usize</a>&gt;(
41 ····&amp;mut·self,41 ····&amp;mut·self,
42 )·-&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">where42 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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
44 ····Self:·<a·class="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·by44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
45 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where45 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where47 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&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="https://doc.rust-lang.org/1.83.0/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>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../co[·...·truncated·by·diffoscope;·len:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where49 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····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>51 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
52 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where52 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
55 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where55 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element59 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
60 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where60 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
64 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where64 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
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'>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>·methods65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
66 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See66 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
67 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where67 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where69 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where71 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where73 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
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'>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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
76 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where76 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
79 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where79 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,81 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
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::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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>·over84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
85 <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>,85 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
86 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where86 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
87 ····Self:·<a·class="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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
89 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
90 ····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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
91 ····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;,91 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
92 ····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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
93 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
94 ····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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
97 ····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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
98 ····T:·'a,98 ····T:·'a,
99 ····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 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
100 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
101 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.101 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
102 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where102 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
103 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
105 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where105 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·returns108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
109 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where109 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
112 ····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·the112 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
113 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where113 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
116 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
119 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(119 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
120 ····&amp;mut·self,120 ····&amp;mut·self,
121 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
125 ····&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·the125 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
126 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where126 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 148861/333088 bytes (44.69%) of diff not shown.
307 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RChunksExactMut.html
    
Offset 1, 223 lines modifiedOffset 1, 223 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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.83.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">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="../../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>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·a02161d18b05a98031d92e4dcdcf5166ff10deaaafcc678def467938a5386b07·...·]/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="https://doc.rust-lang.org/1.83.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:·d45d9baeffbc6ca0174ee03f1b080a1730ce0f89f865c8145cfbb44083bf3661·...·]/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·32b668358f8d4786e8f5110998175758e36e739aac15a0eb7e64d31b82266a5e·...·]/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="https://doc.rust-lang.org/1.83.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:·0726fc0ba3400092b0f3ca3a36754400757d9cbb19e779074f948a91b16fb49c·...·]/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="../../core/primitive.usize.html">usize</a>,17 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
18 )·-&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:·b3ff8f43e83669e38c87960b2f418ee29d39f74f1d92ad0ca44593ecd0f7da3c·...·]/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="https://doc.rust-lang.org/1.83.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:·78950170618db53d2976d530a11a395b0e4b04cf7302b9ce4041cd91dd8e59f0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes21 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,24 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::Itera[·...·truncated·by·diffoscope;·len:·8856,·SHA:·f0851f632ec702f4e6374f585d2c7db9249a3bae31e80adff9111fb36a9fca4c·...·]/core/primitive.usize.html">usize</a>&gt;(27 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10179,·SHA:·a5266e07b6245036a5ccc622e9f84eb67835966fcba2d69a6273c457a7b470a4·...·]/core/primitive.usize.html">usize</a>&gt;(
28 ····&amp;mut·self,28 ····&amp;mut·self,
29 )·-&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">where29 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/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="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
32 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where36 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>38 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each41 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
42 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
51 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
63 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····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,·but65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,68 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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>·over71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,80 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
85 ····T:·'a,85 ····T:·'a,
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;,86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,87 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,91 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
96 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
100 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(106 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the112 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where119 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where125 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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;,127 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
Max diff block lines reached; 80255/313882 bytes (25.57%) of diff not shown.
303 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RChunksMut.html
    
Offset 1, 219 lines modifiedOffset 1, 219 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.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">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="../../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>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·952887600d519a3c4c224593eea2aaff113029f4b97604afbda6fc73d1513b21·...·]/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="https://doc.rust-lang.org/1.83.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:·1ee96d3349814de14fa489468371c3d0200cae9bdfa53e77880d29d14bd27767·...·]/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="../../core/primitive.usize.html">usize</a>,13 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
14 )·-&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:·df0bc029132ba0841078c03fe3397baee762fde36b006c137162ed943bca91df·...·]/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="https://doc.rust-lang.org/1.83.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:·33684f49f690b62636b14574155a98289cf4dcd1360403e2e8107ba089062714·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes17 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·6541a7a1af598cda263e1fa0156cb04a295dd36775da04bfe1624bf337904d59·...·]/core/primitive.usize.html">usize</a>&gt;(23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10125,·SHA:·66a23212c88265132ea06e138b5a2fad13bcadb142ef01452da842c7628092ec·...·]/core/primitive.usize.html">usize</a>&gt;(
24 ····&amp;mut·self,24 ····&amp;mut·self,
25 )·-&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">where25 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/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="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
28 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>34 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
38 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
47 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
59 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····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,·but61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,64 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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>·over67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
76 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
80 ····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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
81 ····T:·'a,81 ····T:·'a,
82 ····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 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
83 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
84 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.84 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
85 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where85 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,87 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
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.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the95 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
96 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
99 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(102 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,104 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where105 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,107 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the108 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where115 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,120 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where121 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,123 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
124 ····&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·returns124 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where125 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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:·24b05508866a859ec0c505fb99ef85c0bb1b2a9030b237dfc0130a630e609609·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where127 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 79855/309799 bytes (25.78%) of diff not shown.
313 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RSplit.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·subslices·separated·by·elements·that·match·a·predicate·function,·starting·from·the·end·of·the·slice."><title>RSplit·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplit</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-RSplit%3C'_,+T,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RSplit%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplit%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplit%3C'_,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplit%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-RSplit%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplit%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplit%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplit%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplit%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplit%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-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">RSplit</span><button·id="copy-path"·title="Copy·item·path·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#931">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplit&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,·starting·from·the·end·of·the·slice."><title>RSplit·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplit</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-RSplit%3C'_,+T,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RSplit%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplit%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplit%3C'_,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplit%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-RSplit%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplit%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplit%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplit%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplit%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplit%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-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">RSplit</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/slice/iter.rs.html#931">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplit&lt;'a,·T,·P&gt;<div·class="where">where
2 ····T:·'a,2 ····T:·'a,
3 ····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·predicate3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,·starting·from·the·end·of·the·slice.</p>4 function,·starting·from·the·end·of·the·slice.</p>
5 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.rsplit"·title="method·slice::rsplit"><code>rsplit</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>5 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.rsplit"·title="method·slice::rsplit"><code>rsplit</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.83.0/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">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>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><span·class="kw-2">mut·</span>iter·=·slice.rsplit(|num|·<span·class="kw-2">*</span>num·==·<span·class="number">0</span>);8 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.rsplit(|num|·<span·class="kw-2">*</span>num·==·<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">44</span>,·<span·class="number">55</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">44</span>,·<span·class="number">55</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">11</span>,·<span·class="number">22</span>,·<span·class="number">33</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">11</span>,·<span·class="number">22</span>,·<span·class="number">33</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+=+%5B11,+22,+33,+0,+44,+55%5D;%0A++++let+mut+iter+=+slice.rsplit(%7Cnum%7C+*num+==+0);%0A++++assert_eq!(iter.next(),+Some(%26%5B44,+55%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B11,+22,+33%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+=+%5B11,+22,+33,+0,+44,+55%5D;%0A++++let+mut+iter+=+slice.rsplit(%7Cnum%7C+*num+==+0);%0A++++assert_eq!(iter.next(),+Some(%26%5B44,+55%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B11,+22,+33%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-Clone-for-RSplit%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#960-962">source</a></span><a·href="#impl-Clone-for-RSplit%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::slice::RSplit">RSplit</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-Clone-for-RSplit%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.83.0/src/core/slice/iter.rs.html#960-962">source</a></span><a·href="#impl-Clone-for-RSplit%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::slice::RSplit">RSplit</a>&lt;'_,·T,·P&gt;<div·class="where">where
13 ····P:·<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.reference.ht[·...·truncated·by·diffoscope;·len:·1778,·SHA:·99b4d60dd65649aae39aa7b9b0ea5062cdeab483adf0b6bb1164169b66ed7120·...·]/src/core/slice/iter.rs.html#946-948">source</a></span><a·href="#impl-Debug-for-RSplit%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.RSplit.html"·title="struct·alloc::slice::RSplit">RSplit</a>&lt;'_,·T,·P&gt;<div·class="where">where13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·cla[·...·truncated·by·diffoscope;·len:·2075,·SHA:·521432ae15264b2175489c4dc8da37292333d22ac9e8f4148fddd7145a019c8f·...·]/src/core/slice/iter.rs.html#946-948">source</a></span><a·href="#impl-Debug-for-RSplit%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.RSplit.html"·title="struct·alloc::slice::RSplit">RSplit</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="../../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:·1429,·SHA:·97c8464cbaabd83e8169ca468b63915246faf30fb0034dfca82ed04f684fb1ec·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::slice::RSplit">RSplit</a>&lt;'a,·T,·P&gt;<div·class="where">where15 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1645,·SHA:·f52fd0bafe83786d696b57036b9992e642677df37bd0b91225cbae5391254da8·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::slice::RSplit">RSplit</a>&lt;'a,·T,·P&gt;<div·class="where">where
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:·3750,·SHA:·920a8688fd0aabf5725c178545f5b05ffd73d524afbde5615c2b64ae142b1be2·...·]/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">where16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4398,·SHA:·3363b3aa511dc529e28a776d897073c00605886ac39a788a8f173d68d16d7a7a·...·]/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
17 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,18 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
19 ····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·takes19 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
20 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where20 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
23 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where23 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·813,·SHA:·1ecc7bc31b9d9a98f6bc487b2d26c2fe759f4ca201d328b780b3f8758b5c0e63·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::slice::RSplit">RSplit</a>&lt;'a,·T,·P&gt;<div·class="where">where25 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·975,·SHA:·b342c3ee9cf449c55f18fcd2818c7567a3cd903322c1832faaf3f6d5740228fb·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::slice::RSplit">RSplit</a>&lt;'a,·T,·P&gt;<div·class="where">where
26 ····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:·2647,·SHA:·43f7404bc875ffd0d1e01c521d657a67c4d3e4cd58ff3113f07c178e185b4cfe·...·]/core/primitive.usize.html">usize</a>&gt;(26 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3187,·SHA:·277a26ae3f6c913deb6000a8a29edf51cdc53f6bb307b2c2a7e58e3093c8d8b8·...·]/core/primitive.usize.html">usize</a>&gt;(
27 ····&amp;mut·self,27 ····&amp;mut·self,
28 )·-&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">where28 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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
29 ····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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
30 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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
32 ····Self:·<a·class="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·by32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
33 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where33 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where35 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where37 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>39 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
40 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
43 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element47 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::[·...·truncated·by·diffoscope;·len:·863,·SHA:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
52 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
64 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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,·but66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,69 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
70 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····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>·over72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,81 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,84 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
86 ····T:·'a,86 ····T:·'a,
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">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,88 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where90 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
97 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
101 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(107 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,112 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the113 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where126 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 90968/320814 bytes (28.36%) of diff not shown.
297 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RSplitMut.html
    
Offset 1, 223 lines modifiedOffset 1, 223 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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.83.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">where
2 ····T:·'a,2 ····T:·'a,
3 ····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·separated3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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>5 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·6d5b5df0b7a030b19dfb4e5e6f5e9d29c69539fc2aa9f37811fcab3523bf70c3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1654,·SHA:·38c8b1ce10c58eb3595dec9d582a39244d4166e0231846a5f8fc221217ee2a66·...·]/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="../../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:·ff5aec31654f4957b1cb742d70688f8e9a56a8e0439f23d50eac16ecdb42556e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4403,·SHA:·536f1c795481a8cf81d6fd419416850d2b06f966a627251eb8af2ae5fc14deaf·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes15 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,18 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·821,·SHA:·c505b4001ba01cf0c2cdb06d0801b1c8920068113ab3fae3f2a3a9a0af4be5ff·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·983,·SHA:·73125238af6e92cd01bbfc3444c1dce0a80a54da4f33bed60b8d3589d725a478·...·]/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="../../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:·3364122fbf6304b4a37d8b8b9049ef929bab1d1e1d78d580923b3d37d72e17e9·...·]/core/primitive.usize.html">usize</a>&gt;(22 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3198,·SHA:·5045f91d7f20b9502f7e7ca370afe96c14bc5b6c50da27b2151683ff6700890b·...·]/core/primitive.usize.html">usize</a>&gt;(
23 ····&amp;mut·self,23 ····&amp;mut·self,
24 )·-&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">where24 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
26 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
29 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>35 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
39 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
48 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
60 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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,·but62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,65 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
66 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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>·over68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
77 ····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;,77 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····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;,80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
82 ····T:·'a,82 ····T:·'a,
83 ····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;,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
84 ····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,84 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.85 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
86 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where86 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
92 ····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·returns92 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
93 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where93 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the96 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
97 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where97 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where100 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(103 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,105 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where106 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the109 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where116 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where122 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,124 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
125 ····&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·returns125 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 80221/303996 bytes (26.39%) of diff not shown.
273 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RSplitN.html
    
Offset 1, 213 lines modifiedOffset 1, 213 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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.83.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">where
2 ····T:·'a,2 ····T:·'a,
3 ····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·a3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·651b78ab6da1137297b93d94460789c18af0ea5ae852d078d48c99010b851b24·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6528167c5d9365725d39829434cd0e246bde9ff280fbbf57122fb50f3b94f54b·...·]/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="../../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:·8c2430b5cb45026d3a5913e97bf582cdb5bbbb2f736453ed400dcbb93247ee3d·...·]/core/primitive.usize.html">usize</a>&gt;(16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3190,·SHA:·f9ba7d9347fccf9655ff5bf48d3ed8992141704ffa517ef010b6981533f01c81·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self,17 ····&amp;mut·self,
18 )·-&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">where18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</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><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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
23 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>29 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
33 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::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·element37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
42 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
54 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····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,·but56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,59 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
60 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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>·over62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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;,69 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,71 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,74 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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,77 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
82 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
86 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::[·...·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·reducing91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(92 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the98 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
114 ····&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·returns114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where115 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iterator::[·...·truncated·by·diffoscope;·len:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,118 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
121 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
124 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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,125 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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·the127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
Max diff block lines reached; 80819/279583 bytes (28.91%) of diff not shown.
272 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.RSplitNMut.html
    
Offset 1, 208 lines modifiedOffset 1, 208 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.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">where
2 ····T:·'a,2 ····T:·'a,
3 ····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·a3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·af0c198145ba10708418f549e73bf86077b74ac18ef0c8ca4320f337f2fe9f85·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1627,·SHA:·a5d374432514c64111226e0df398d3a5b4c7a4d9371a32d6082a58dc179f1b43·...·]/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="../../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:·c81003843a9389d6742a35921893bb34a1aebcb44c0b517b1a6241f1cf922004·...·]/core/primitive.usize.html">usize</a>&gt;(13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3198,·SHA:·f7f58346b46658f8cad3000b971108f779b6a7f56d29b0b32c39172a05b5bfd0·...·]/core/primitive.usize.html">usize</a>&gt;(
14 ····&amp;mut·self,14 ····&amp;mut·self,
15 )·-&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">where15 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
17 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
20 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
25 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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>26 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where27 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each29 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
30 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where30 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element34 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
35 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where35 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
38 ····Self:·<a·class="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·as38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
39 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where39 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
40 ····Self:·<a·class="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>·methods40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
41 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See41 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
42 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where42 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where48 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
50 ····Self:·<a·class="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·fewer50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
51 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where51 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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,·but53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
54 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where54 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,56 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
57 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····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>·over59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
68 ····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;,68 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
69 ····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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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;,71 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
72 ····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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····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,74 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where75 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····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,77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
78 ····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·returns78 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
79 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where79 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>)·-&gt;·R,81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the82 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
83 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where83 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where86 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
89 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(89 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
90 ····&amp;mut·self,90 ····&amp;mut·self,
91 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,91 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
92 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where92 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····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;,94 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
95 ····&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·the95 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
96 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where96 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
97 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where102 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
103 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
105 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(105 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
106 ····&amp;mut·self,106 ····&amp;mut·self,
107 ····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,107 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where108 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····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;,110 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
111 ····&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·returns111 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
112 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where112 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
114 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where114 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.0/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·maximum·value·from·the117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
118 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/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="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="https://doc.rust-lang.org/1.83.0/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::Itera[·...·truncated·by·diffoscope;·len:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
121 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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,122 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····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·the124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
125 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·2bda7c0e9b5772a555bb689908791c4c7160f538659a6e1ec8976f71a8ff527b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where125 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
Max diff block lines reached; 80299/278588 bytes (28.82%) of diff not shown.
318 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.Split.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."><title>Split·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split</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.as_slice"·title="as_slice">as_slice</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Split%3C'_,+T,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Split%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Split%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Split%3C'_,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Split%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-Split%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Split%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Split%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Split%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Split%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Split%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-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">Split</span><button·id="copy-path"·title="Copy·item·path·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#398">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Split&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."><title>Split·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split</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.as_slice"·title="as_slice">as_slice</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Split%3C'_,+T,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Split%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Split%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Split%3C'_,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Split%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-Split%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Split%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Split%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Split%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Split%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Split%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-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">Split</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/slice/iter.rs.html#398">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Split&lt;'a,·T,·P&gt;<div·class="where">where
2 ····T:·'a,2 ····T:·'a,
3 ····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·predicate3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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.</p>4 function.</p>
5 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.split"·title="method·slice::split"><code>split</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>5 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.split"·title="method·slice::split"><code>split</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.83.0/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">33</span>,·<span·class="number">20</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">33</span>,·<span·class="number">20</span>];
8 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.split(|num|·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.split(|num|·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>][..]));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>][..]));
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,+33,+20%5D;%0A++++let+mut+iter+=+slice.split(%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%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,+33,+20%5D;%0A++++let+mut+iter+=+slice.split(%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%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+None);%0A%7D&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-Split%3C'a,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#409">source</a><a·href="#impl-Split%3C'a,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·P&gt;·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::slice::Split">Split</a>&lt;'a,·T,·P&gt;<div·class="where">where12 </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-Split%3C'a,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/slice/iter.rs.html#409">source</a><a·href="#impl-Split%3C'a,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·P&gt;·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::slice::Split">Split</a>&lt;'a,·T,·P&gt;<div·class="where">where
13 ····T:·'a,13 ····T:·'a,
14 ····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:·358,·SHA:·f9a46b65f38ec84aea364a572526b7a711ac24e01339edb4bf90158344190eea·...·]/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>split_as_slice</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/96137">#96137</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·slice·which·contains·items·not·yet·handled·by·split.</p>14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·493,·SHA:·d709ad76f20ea70d3d09b9da09b909008b5bd9c93e10bfb331e5815c8b226f18·...·]/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>split_as_slice</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/96137">#96137</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·slice·which·contains·items·not·yet·handled·by·split.</p>
15 <h5·id="example-1"><a·class="doc-anchor"·href="#example-1">§</a>Example</h5>15 <h5·id="example-1"><a·class="doc-anchor"·href="#example-1">§</a>Example</h5>
16 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(split_as_slice)]16 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(split_as_slice)]
17 </span><span·class="kw">let·</span>slice·=·[<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>];17 </span><span·class="kw">let·</span>slice·=·[<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>];
18 <span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·slice.split(|v|·v·%·<span·class="number">2·</span>==·<span·class="number">0</span>);18 <span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·slice.split(|v|·v·%·<span·class="number">2·</span>==·<span·class="number">0</span>);
19 <span·class="macro">assert!</span>(split.next().is_some());19 <span·class="macro">assert!</span>(split.next().is_some());
20 <span·class="macro">assert_eq!</span>(split.as_slice(),·<span·class="kw-2">&amp;</span>[<span·class="number">3</span>,<span·class="number">4</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%0A%23!%5Bfeature(split_as_slice)%5D%0Afn+main()+%7B%0A++++let+slice+=+%5B1,2,3,4,5%5D;%0A++++let+mut+split+=+slice.split(%7Cv%7C+v+%25+2+==+0);%0A++++assert!(split.next().is_some());%0A++++assert_eq!(split.as_slice(),+%26%5B3,4,5%5D);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>20 <span·class="macro">assert_eq!</span>(split.as_slice(),·<span·class="kw-2">&amp;</span>[<span·class="number">3</span>,<span·class="number">4</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%0A%23!%5Bfeature(split_as_slice)%5D%0Afn+main()+%7B%0A++++let+slice+=+%5B1,2,3,4,5%5D;%0A++++let+mut+split+=+slice.split(%7Cv%7C+v+%25+2+==+0);%0A++++assert!(split.next().is_some());%0A++++assert_eq!(split.as_slice(),+%26%5B3,4,5%5D);%0A%7D&amp;version=nightly&amp;edition=2021"></a></div>
21 </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-Split%3C'_,+T,+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/slice/iter.rs.html#442-444">source</a></span><a·href="#impl-Clone-for-Split%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::slice::Split">Split</a>&lt;'_,·T,·P&gt;<div·class="where">where21 </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-Split%3C'_,+T,+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.83.0/src/core/slice/iter.rs.html#442-444">source</a></span><a·href="#impl-Clone-for-Split%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::slice::Split">Split</a>&lt;'_,·T,·P&gt;<div·class="where">where
22 ····P:·<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.reference.ht[·...·truncated·by·diffoscope;·len:·1771,·SHA:·8ce08307a7fb6bd2f4563495cc743044e8d3e00a0a85ac3302339709ed953131·...·]/src/core/slice/iter.rs.html#431-433">source</a></span><a·href="#impl-Debug-for-Split%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.Split.html"·title="struct·alloc::slice::Split">Split</a>&lt;'_,·T,·P&gt;<div·class="where">where22 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·cla[·...·truncated·by·diffoscope;·len:·2068,·SHA:·f1e30cd2ff308ed3c91d277d2d55ac3428ce1e1d6bcc2251604a447f7f66a13c·...·]/src/core/slice/iter.rs.html#431-433">source</a></span><a·href="#impl-Debug-for-Split%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.Split.html"·title="struct·alloc::slice::Split">Split</a>&lt;'_,·T,·P&gt;<div·class="where">where
23 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,23 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
24 ····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:·1425,·SHA:·d524899e5a4cfcc5a762f85a9cb8038188e32e16d4043e34426a895288cac6f0·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::slice::Split">Split</a>&lt;'a,·T,·P&gt;<div·class="where">where24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1641,·SHA:·bf1914e25465e20e0438ed7602b6c1b74c63290abc8304b2ae4051dda143932f·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::slice::Split">Split</a>&lt;'a,·T,·P&gt;<div·class="where">where
25 ····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:·3750,·SHA:·19243f2c9e8e01edf3a34bb1e3e046c25a36f6d937c3409a408b8530ad23da7f·...·]/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">where25 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4398,·SHA:·1ffe3e8c1b52033eb4df86214514734e1d04765a519ab104276c52e78bf1992d·...·]/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
26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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,27 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
28 ····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·takes28 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
29 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where29 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
32 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where32 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
33 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·809,·SHA:·ad81b92aa9d5834fea51048e0b228ff85655801dc2b84a49ac899d9247e310f8·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::slice::Split">Split</a>&lt;'a,·T,·P&gt;<div·class="where">where34 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·971,·SHA:·2bac91e9d25a80bacee75570bc33a65d95ff06aa6aa0081f1b9c1168b7214723·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::slice::Split">Split</a>&lt;'a,·T,·P&gt;<div·class="where">where
35 ····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:·2647,·SHA:·555e899de122aadb28c76c2161bceaedc97a65d5bbabbd66be50119c40dfc352·...·]/core/primitive.usize.html">usize</a>&gt;(35 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3187,·SHA:·fa4bae81664e2c3b50ff6d0ceb02ba188b87370622f7d9e8ae91da9eb541a830·...·]/core/primitive.usize.html">usize</a>&gt;(
36 ····&amp;mut·self,36 ····&amp;mut·self,
37 )·-&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">where37 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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
38 ····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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
39 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
40 ····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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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
41 ····Self:·<a·class="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·by41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
42 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where42 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where44 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where46 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····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>48 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
49 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where49 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
52 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where52 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
57 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where57 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
61 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where61 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="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>·methods62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
63 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See63 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
64 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where64 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where66 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where68 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where70 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
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'>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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
73 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where73 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····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,·but75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
76 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where76 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
78 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,78 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
79 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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>·over81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
82 <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 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
83 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where83 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
87 ····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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
88 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,90 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,93 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
95 ····T:·'a,95 ····T:·'a,
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;,96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,97 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where99 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,101 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
106 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the109 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
110 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
113 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(116 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,118 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,121 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the122 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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; 144318/325352 bytes (44.36%) of diff not shown.
315 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.SplitInclusive.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·over·subslices·separated·by·elements·that·match·a·predicate·function.·Unlike·`Split`,·it·contains·the·matched·part·as·a·terminator·of·the·subslice."><title>SplitInclusive·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Inclusive</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-SplitInclusive%3C'_,+T,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SplitInclusive%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitInclusive%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitInclusive%3C'_,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitInclusive%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-SplitInclusive%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitInclusive%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitInclusive%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitInclusive%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitInclusive%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitInclusive%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-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">SplitInclusive</span><button·id="copy-path"·title="Copy·item·path·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#554">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitInclusive&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.·Unlike·`Split`,·it·contains·the·matched·part·as·a·terminator·of·the·subslice."><title>SplitInclusive·in·alloc::slice·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Inclusive</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-SplitInclusive%3C'_,+T,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SplitInclusive%3C'_,+T,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitInclusive%3C'a,+T,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitInclusive%3C'_,+T,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitInclusive%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-SplitInclusive%3C'a,+T,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitInclusive%3C'a,+T,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitInclusive%3C'a,+T,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitInclusive%3C'a,+T,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitInclusive%3C'a,+T,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitInclusive%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-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">SplitInclusive</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/slice/iter.rs.html#554">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitInclusive&lt;'a,·T,·P&gt;<div·class="where">where
2 ····T:·'a,2 ····T:·'a,
3 ····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·predicate3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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.·Unlike·<code>Split</code>,·it·contains·the·matched·part·as·a·terminator4 function.·Unlike·<code>Split</code>,·it·contains·the·matched·part·as·a·terminator
5 of·the·subslice.</p>5 of·the·subslice.</p>
6 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.split_inclusive"·title="method·slice::split_inclusive"><code>split_inclusive</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.split_inclusive"·title="method·slice::split_inclusive"><code>split_inclusive</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.83.0/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">33</span>,·<span·class="number">20</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">33</span>,·<span·class="number">20</span>];
9 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.split_inclusive(|num|·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.split_inclusive(|num|·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">10</span>,·<span·class="number">40</span>,·<span·class="number">33</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">10</span>,·<span·class="number">40</span>,·<span·class="number">33</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">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">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,+33,+20%5D;%0A++++let+mut+iter+=+slice.split_inclusive(%7Cnum%7C+num+%25+3+==+0);%0A++++assert_eq!(iter.next(),+Some(%26%5B10,+40,+33%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B20%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,+33,+20%5D;%0A++++let+mut+iter+=+slice.split_inclusive(%7Cnum%7C+num+%25+3+==+0);%0A++++assert_eq!(iter.next(),+Some(%26%5B10,+40,+33%5D%5B..%5D));%0A++++assert_eq!(iter.next(),+Some(%26%5B20%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-Clone-for-SplitInclusive%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#586-588">source</a></span><a·href="#impl-Clone-for-SplitInclusive%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::slice::SplitInclusive">SplitInclusive</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-Clone-for-SplitInclusive%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.83.0/src/core/slice/iter.rs.html#586-588">source</a></span><a·href="#impl-Clone-for-SplitInclusive%3C'_,+T,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·P&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83[·...·truncated·by·diffoscope;·len:·2,·SHA:·ce5829e1a023d49c88eca9ff6812ded618d4c3ed0d2a572b545609b9c4983153·...·]/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::slice::SplitInclusive">SplitInclusive</a>&lt;'_,·T,·P&gt;<div·class="where">where
14 ····P:·<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.reference.ht[·...·truncated·by·diffoscope;·len:·1818,·SHA:·6b3d99ed061e21a0697f66b0984953a53b92b305fa94dd346b775f8f13b16237·...·]/src/core/slice/iter.rs.html#572-574">source</a></span><a·href="#impl-Debug-for-SplitInclusive%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.SplitInclusive.html"·title="struct·alloc::slice::SplitInclusive">SplitInclusive</a>&lt;'_,·T,·P&gt;<div·class="where">where14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·cla[·...·truncated·by·diffoscope;·len:·2115,·SHA:·604eb6b5df515516a264422888493f4518a490ee47becf6e7ab1cb877ed4b95c·...·]/src/core/slice/iter.rs.html#572-574">source</a></span><a·href="#impl-Debug-for-SplitInclusive%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.SplitInclusive.html"·title="struct·alloc::slice::SplitInclusive">SplitInclusive</a>&lt;'_,·T,·P&gt;<div·class="where">where
15 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,15 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
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:·1445,·SHA:·1ca8029889debee5c0405037e003ee3d66cc0eeaa23279993d655d6e931dc4f2·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::slice::SplitInclusive">SplitInclusive</a>&lt;'a,·T,·P&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1661,·SHA:·7504a808acffc2ba64d3bb80621cce0d59680d0fd11b9ab427b53ed162dde42c·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::slice::SplitInclusive">SplitInclusive</a>&lt;'a,·T,·P&gt;<div·class="where">where
17 ····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:·3750,·SHA:·9402fe4611c5c44b1af9d44572514ff9161efe7691e9df82ddbec2536649ad38·...·]/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">where17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4398,·SHA:·4498373ecc31d196f027fc177e365d963e3e3d65b0e7517138c763eb781300d6·...·]/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
18 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,19 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
20 ····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·takes20 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
21 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where21 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····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,23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where24 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·829,·SHA:·eb66b6c9654c9d36b66a773a307fa7a26199379dcc4aef42b9bb037b2249e7a2·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::slice::SplitInclusive">SplitInclusive</a>&lt;'a,·T,·P&gt;<div·class="where">where26 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·991,·SHA:·62fcd3303a1f0b5c8523ca5bf93432d631a8482176d7ee112217ac7235470a91·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::slice::SplitInclusive">SplitInclusive</a>&lt;'a,·T,·P&gt;<div·class="where">where
27 ····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:·2647,·SHA:·50820fef56c98eaa6c77057e53a7a02c1806e457318547fdad9a6decfc521cd7·...·]/core/primitive.usize.html">usize</a>&gt;(27 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3187,·SHA:·427d2428f103d207f492bf2a17864c6b0cb11ae0d461fc86d8059a235296e814·...·]/core/primitive.usize.html">usize</a>&gt;(
28 ····&amp;mut·self,28 ····&amp;mut·self,
29 )·-&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">where29 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><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'>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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
32 ····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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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
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·starting·at·the·same·point,·but·stepping·by33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
34 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where34 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where36 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where38 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····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 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where41 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each43 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
44 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where44 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where46 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element48 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
49 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where49 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
52 ····Self:·<a·class="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·as52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
53 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where53 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
54 ····Self:·<a·class="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>·methods54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
55 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See55 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
56 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where56 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where58 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where60 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where62 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
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'>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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
65 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where65 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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,·but67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
68 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where68 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,70 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
71 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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>·over73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,82 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,85 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
87 ····T:·'a,87 ····T:·'a,
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;,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,89 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
98 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
102 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(108 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
127 )·-&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">where127 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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; 91638/322232 bytes (28.44%) of diff not shown.
298 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.SplitInclusiveMut.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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.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">where
2 ····T:·'a,2 ····T:·'a,
3 ····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·separated3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·8a58b3a4c7e98e6be19c2ec00f11c9c6a0daa187c31dac229514c3b8906615d1·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1667,·SHA:·0a281578241191fefab02ea1a82c0191bb500138e79882fe90101255e0b13f49·...·]/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="../../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:·bb403ee2080b91f2586d21080100f8568e919dcbfd26946855c4048ee940537b·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4402,·SHA:·1d660a5fb74de36ef2d3565edbcd0672e0c81eaa030055e69c0db786eeeed44b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes16 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,19 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·835,·SHA:·5d4fcf6b5ccc85cdc6c84b2fd8a28105133069921976a63572f89957fdcfcf59·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·997,·SHA:·7c02cbec530ac375faf083e7398d79f6c4c43abbbdceea01600647da4df2d4e8·...·]/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="../../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:·bf6e28a47f7b43818eaa390bfc9ee8bb99bffc8f9c734471765ab92ba64d1150·...·]/core/primitive.usize.html">usize</a>&gt;(23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3195,·SHA:·f0052134de4fa301761863c4fc239c47109617752de87858308260438e466fe2·...·]/core/primitive.usize.html">usize</a>&gt;(
24 ····&amp;mut·self,24 ····&amp;mut·self,
25 )·-&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">where25 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</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><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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
30 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where34 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>36 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
40 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
49 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
61 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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,·but63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,66 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
67 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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>·over69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,78 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,81 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
83 ····T:·'a,83 ····T:·'a,
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;,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,85 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where87 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,89 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
94 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
98 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(104 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,106 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where107 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,109 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the110 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where117 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where123 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,125 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
126 ····&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·returns126 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
127 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where127 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 80779/305273 bytes (26.46%) of diff not shown.
297 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.SplitMut.html
    
Offset 1, 223 lines modifiedOffset 1, 223 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.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">where
2 ····T:·'a,2 ····T:·'a,
3 ····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·separated3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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>5 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·6f0a23f18beb77009eb8cf124f69317aedf40ccac4415cc8e524043b2e343c13·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1647,·SHA:·f50819bcc26f9835e1e306bcd907514e63f00d4e98c9725902b200d6620c52f0·...·]/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="../../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:·cbd59df1e09c11160c9a1407b808739bdf99263419c9002870a18af00583b8e8·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4402,·SHA:·75bc35d45f829915bdd80dd623c33b202962ddbd5705206619ebc3d0950b654b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes15 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,18 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·815,·SHA:·ea8a450d3025f66b059d10aae7750954ed39308decd1bc85c1db9ee059984ab7·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·977,·SHA:·425d2022e576c6f3a3c3322045474afab655f2d1410965ec569807918e95f1ab·...·]/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="../../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:·e3ed3243d6efb138bedee3b5cd9385ee14aabdf54bf720f3a79c50b5ea86b163·...·]/core/primitive.usize.html">usize</a>&gt;(22 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3195,·SHA:·17ba326f094489a2430c4ad03d499fca0a049e2ee8f932f87b99ad835aa6fce8·...·]/core/primitive.usize.html">usize</a>&gt;(
23 ····&amp;mut·self,23 ····&amp;mut·self,
24 )·-&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">where24 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
26 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
29 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>35 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
39 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
48 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
60 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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,·but62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,65 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
66 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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>·over68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
77 ····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;,77 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····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;,80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
82 ····T:·'a,82 ····T:·'a,
83 ····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;,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
84 ····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,84 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.85 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
86 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where86 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
92 ····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·returns92 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
93 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where93 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the96 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
97 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where97 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where100 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(103 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,105 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where106 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the109 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where116 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where122 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,124 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
125 ····&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·returns125 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 80149/303770 bytes (26.38%) of diff not shown.
273 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.SplitN.html
    
Offset 1, 212 lines modifiedOffset 1, 212 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.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">where
2 ····T:·'a,2 ····T:·'a,
3 ····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·predicate3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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>5 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·e7ab4a44c0cb69f36086c1977e3d386971214859bede7c4d71f8567bf26d8752·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1619,·SHA:·76cd5d3082133e621927f40e37833dfc5c797c7860a6a259b5c1efd0f958b0de·...·]/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="../../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:·bee9ad511d432d3a8208f7c6d10a7465938c049bdaab173676756fd7e4a02b66·...·]/core/primitive.usize.html">usize</a>&gt;(15 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3190,·SHA:·90cd5f53ffe92d31f6113e5b59002ed8cb5a014cc13dfe729f775413682dd711·...·]/core/primitive.usize.html">usize</a>&gt;(
16 ····&amp;mut·self,16 ····&amp;mut·self,
17 )·-&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">where17 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
19 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
22 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
26 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where26 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>28 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
32 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element36 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
41 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
53 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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,·but55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,58 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
59 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····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>·over61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
62 <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>,62 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
63 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where63 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
68 ····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;,68 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
69 ····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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
70 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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;,73 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
74 ····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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····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,76 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where77 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
80 ····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·returns80 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
81 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where81 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the84 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
85 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where85 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where88 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
91 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(91 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
92 ····&amp;mut·self,92 ····&amp;mut·self,
93 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,93 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
94 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where94 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
96 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
97 ····&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·the97 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
98 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where98 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
99 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
104 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where104 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
107 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(107 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
108 ····&amp;mut·self,108 ····&amp;mut·self,
109 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where110 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
113 ····&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·returns113 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
114 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where114 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
115 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,117 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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·the119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
120 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
123 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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/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·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,124 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····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·the126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
127 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·2bda7c0e9b5772a555bb689908791c4c7160f538659a6e1ec8976f71a8ff527b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where127 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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; 80749/279360 bytes (28.90%) of diff not shown.
272 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.SplitNMut.html
    
Offset 1, 207 lines modifiedOffset 1, 207 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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.83.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">where
2 ····T:·'a,2 ····T:·'a,
3 ····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·predicate3 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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>5 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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:·9ef12c2f599ef5cfb865d54c46b46ef15ef3216030008d90f1fa57f0e9fcb127·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1625,·SHA:·d2e32152c31707090197ef35d07746b95590f681f894fd8c183453915fa0d075·...·]/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="../../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:·a173bfffe18de2b633891beee99956898d27098486311538cfff9919dd890f02·...·]/core/primitive.usize.html">usize</a>&gt;(12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3198,·SHA:·955dce36e35b2deac2c80df0aee003aecda39b88d3c85b3fe4e8a692a22ae089·...·]/core/primitive.usize.html">usize</a>&gt;(
13 ····&amp;mut·self,13 ····&amp;mut·self,
14 )·-&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">where14 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
16 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
19 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
21 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where23 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····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 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
26 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where26 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
29 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where29 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element33 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
34 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where34 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
35 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
37 ····Self:·<a·class="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·as37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
38 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where38 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
39 ····Self:·<a·class="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>·methods39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
40 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See40 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
41 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where41 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where45 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where47 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
48 ····Self:·<a·class="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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="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·fewer49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
50 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where50 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(<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,·but52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
53 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where53 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,55 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
56 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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>·over58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
67 ····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;,67 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
68 ····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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····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;,70 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
71 ····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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
72 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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,73 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
74 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where74 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····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,76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
77 ····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·returns77 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
78 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where78 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the81 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
82 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where82 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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,84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
85 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where85 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
88 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(88 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
89 ····&amp;mut·self,89 ····&amp;mut·self,
90 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,90 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
91 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where91 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····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;,93 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
94 ····&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·the94 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
95 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where95 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where101 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
104 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(104 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
105 ····&amp;mut·self,105 ····&amp;mut·self,
106 ····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,106 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where107 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····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;,109 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
110 ····&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·returns110 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
111 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where111 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where113 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,114 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
115 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····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·the116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
117 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where117 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
120 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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,121 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····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·the123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
124 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·2bda7c0e9b5772a555bb689908791c4c7160f538659a6e1ec8976f71a8ff527b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
126 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
127 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="Stab[·...·truncated·by·diffoscope;·len:·374,·SHA:·226a4802edd499ddb037006c2857fac9e6f09377237c3b627160791ee1a144db·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where127 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
Max diff block lines reached; 80229/278365 bytes (28.82%) of diff not shown.
319 KB
./usr/share/doc/rust-doc/html/alloc/slice/struct.Windows.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="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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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.83.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">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="../../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>3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·a140bf03cf2162480ca1bea426e29166a30a84f1c48d200800286397c3b5b5e4·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/tr[·...·truncated·by·diffoscope;·len:·2035,·SHA:·ec302cd0b7a991eefaa5ba176ffbc6d61ec6c7ef7391caf04b4165294764a489·...·]/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="../../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:·a1f4d20fcf87df9cdf8dcf14287751ebe628a9f4ad043dad38827e441471cfe0·...·]/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="https://doc.rust-lang.org/1.83.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:·ae7054f98e4694e689ed87525c6a97c5737b91c57c3c71a89241eb9960ff888f·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes15 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,18 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·1cdc1171b071daf06a0862f1121b49f8e46dee74ce5789029656142e73b1be58·...·]/core/primitive.usize.html">usize</a>&gt;(21 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10454,·SHA:·bd56dd732a4af86efc089afee96e1ba984a0bcdd8ccef0218a13389791875f39·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self,22 ····&amp;mut·self,
23 )·-&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">where23 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/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="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
26 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where30 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>32 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each35 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
36 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
45 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
57 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····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,·but59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,62 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
63 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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>·over65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,74 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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="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;,77 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
79 ····T:·'a,79 ····T:·'a,
80 ····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;,80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
81 ····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,81 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.82 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
83 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where83 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····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,85 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where86 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
89 ····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·returns89 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
90 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where90 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the93 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
94 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where94 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
97 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where97 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
100 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(100 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
101 ····&amp;mut·self,101 ····&amp;mut·self,
102 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where103 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
106 ····&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·the106 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
107 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where113 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
116 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
122 ····&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·returns122 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
123 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where123 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iterator::[·...·truncated·by·diffoscope;·len:·973,·SHA:·24b05508866a859ec0c505fb99ef85c0bb1b2a9030b237dfc0130a630e609609·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where125 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
126 ····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>,126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</a>,
127 ····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·its127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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; 88758/326633 bytes (27.17%) 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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="#object-safety">Object·Safety</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;·{1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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="#object-safety">Object·Safety</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.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.concat"·title="method·slice::concat"><code>[T]::concat</code></a></p>
28 </div></details></div><h2·id="object-safety"·class="section-header">Object·Safety<a·href="#object-safety"·class="anchor">§</a></h2><div·class="object-safety-info">This·trait·is·<b>not</b>·<a·href="https://doc.rust-lang.org/1.83.0/reference/items/traits.html#object-safety">object·safe</a>.</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.28 </div></details></div><h2·id="object-safety"·class="section-header">Object·Safety<a·href="#object-safety"·class="anchor">§</a></h2><div·class="object-safety-info">This·trait·is·<b>not</b>·<a·href="https://doc.rust-lang.org/1.83.0/reference/items/traits.html#object-safety">object·safe</a>.</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.83.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.83.0/core/primitive.str.html">str</a[·...·truncated·by·diffoscope;·len:·69,·SHA:·9a275be7cafdeead0992a01fc59e5818eb67200bc20a5bde5c0745d9c56f754e·...·]/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="../../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>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.83.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:·675e1e2b5dd22dd0348638451479005f4bf9f41a79925e00d9dfb3f7d5343484·...·]/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.7 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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="#object-safety">Object·Safety</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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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="#object-safety">Object·Safety</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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.join"·title="method·slice::join"><code>[T]::join</code></a></p>
8 </div></details></div><h2·id="object-safety"·class="section-header">Object·Safety<a·href="#object-safety"·class="anchor">§</a></h2><div·class="object-safety-info">This·trait·is·<b>not</b>·<a·href="https://doc.rust-lang.org/1.83.0/reference/items/traits.html#object-safety">object·safe</a>.</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:·b58e66e01c2babc5e752aa3524d56a754fef191c71315e1389789d9cc6c43c71·...·]/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="object-safety"·class="section-header">Object·Safety<a·href="#object-safety"·class="anchor">§</a></h2><div·class="object-safety-info">This·trait·is·<b>not</b>·<a·href="https://doc.rust-lang.org/1.83.0/reference/items/traits.html#object-safety">object·safe</a>.</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.83.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.83.0/core/primitive.str.html">str</a>[·...·truncated·by·diffoscope;·len:·2865,·SHA:·e48948a0bc8d861dd9adff2cb2b238b73efa8f9c28bac27261bb6333b91150dd·...·]/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.8 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#199">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.0/src/core/slice/index.rs.html#199">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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{2 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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;;5 ····fn·<a·href="#tymethod.get"·class="fn">get</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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;;
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;;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.83.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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;;
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>;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.83.0/core/primitive.pointer.html">*const·T</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>;
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>;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.83.0/core/primitive.pointer.html">*mut·T</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>;
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>;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.83.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>;
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>;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.83.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>;
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="../../src/core/slice/index.rs.html#202">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>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.83.0/src/core/slice/index.rs.html#202">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.83.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>
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="../../src/core/slice/index.rs.html#207">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·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="https://doc.rust-lang.org/1.83.0/src/core/slice/index.rs.html#207">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.83.0/core/primitive.reference.html">&amp;[·...·truncated·by·diffoscope;·len:·67,·SHA:·75676a64eb4f6730820d3d6a7dc6d22d1402da4cba6671a7be1392a229c6c7e7·...·]/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="../../src/core/slice/index.rs.html#212">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·in17 </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.83.0/src/core/slice/index.rs.html#212">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.83.0/core/primitive.reference.htm[·...·truncated·by·diffoscope;·len:·79,·SHA:·8bb1b17f262e5f859bd6826016be4aade3dcf085b102dc7aa3ef842e6a7fd12d·...·]/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="../../src/core/slice/index.rs.html#222">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,·without19 </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.83.0/src/core/slice/index.rs.html#222">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.83.0/core/prim[·...·truncated·by·diffoscope;·len:·99,·SHA:·0638e7829ed7b5ed0aa5da51031fc1f6c10cbf2a3534ce3611ee04b0548bfc35·...·]/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="../../src/core/slice/index.rs.html#232">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,·without23 </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.83.0/src/core/slice/index.rs.html#232">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.83.0/c[·...·truncated·by·diffoscope;·len:·105,·SHA:·5cabb923391cbf630f1bc03a48f6869f11d32717e1120336ad59ecf1f17d1594·...·]/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="../../src/core/slice/index.rs.html#238">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,·panicking27 </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.83.0/src/core/slice/index.rs.html#238">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.83.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,·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="../../src/core/slice/index.rs.html#244">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,·panicking29 </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.83.0/src/core/slice/index.rs.html#244">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.83.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,·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="../../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>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.83.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:·8c916680feef9813412823734737bbc9d006c2d49c3f564c08a8947243be57f9·...·]/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="../../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:·41d80b8ae84324bee05054473048970116e3d7cef790570df9af13376d3b3541·...·]/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="https://doc.rust-lang.org/1.83.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:·2df3c416b6d29e48c9c2ee3f0a4238d51d6a149f5f8de30b2beeee1fa0da6306·...·]/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="../../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:·6aa74abecc2b741a883f8a4e172c1ec3404523d3ec930956321754374a1e4cf0·...·]/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="https://doc.rust-lang.org/1.83.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:·16a386373dfdd76767628bbcd64a61c15d0256f6d26b346a9d7dc7ea30fd15f0·...·]/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="../../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:·86e6ee3c7db6738bb6de38f5389912f8b0c52ef1a36c56cc3bdb2a46943b6d07·...·]/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="https://doc.rust-lang.org/1.83.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:·3af6dc3cd96f6ab5768889304e5e23366d073aae5697bd5b0275d0149113a9d7·...·]/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="../../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:·4bc0110dca0e3823f4138ba73edd07229dc0bf24fd03caf6a5afad70b14e4342·...·]/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="https://doc.rust-lang.org/1.83.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:·bb8491fce95e9c48073be04f5c6e94c908d5790846cfb8b9a345283ed8cc31dc·...·]/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="../../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:·d979f1ef23408158fe44c45c5aede18470b33cef3bcee28869fc40e129d6d542·...·]/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="https://doc.rust-lang.org/1.83.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:·02b1880c4919f6907060a1732513cc3f71fd6f99b46135f2b581548cf3f1fb44·...·]/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="../../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:·ecfcc51d935038b475d272b9bcbab68367a020493677c74d4704c23c3b0dc64d·...·]/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="https://doc.rust-lang.org/1.83.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:·f53b1e022b9ce8bdf93a2ef6c0d6d0904103c925bf604009c2be0c4f3ac6bf78·...·]/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="../../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:·5608,·SHA:·7033ae0bccc6600ce04fdf13974cd054b645590c7b029f7f61689bfa3a186dcf·...·]/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="https://doc.rust-lang.org/1.83.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:·6445,·SHA:·c7dd95be2d6acbb86f40ad14e44cecc3e8ec408d2e0af6479f02746a15c1153e·...·]/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="../../src/core/slice/index.rs.html#250">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:·57a746ec6326db05440f57d8ada664b1bed998e5a9840d198455e9dd2eacf4fe·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/slice/index.rs.html#250">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:·19780db0b5c476a98f3f733a429f70b617ddd4bc5b9762f3ffd45ab4e3dafdac·...·]/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="../../src/core/slice/index.rs.html#389">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:·7046059bb27e6982e6a3759dd6d7d150cf54f84b868428809bdb7c2a8b5f6676·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/slice/index.rs.html#389">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:·dbed5cea8d787b4af5e48441b08847c798b4a7a8421004fea7c7fabdca5fd884·...·]/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="../../src/core/slice/index.rs.html#562">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:·1bf75e141f64ef159783cfa0ba82af1aa608ef660654e6923d70bc86f21d31f2·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/slice/index.rs.html#562">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:·9befb717558ead2fba84d837b672b26f5f969d85aca07c64033514372177f841·...·]/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="../../src/core/slice/index.rs.html#683">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:·6d6a56cfa9c188f074891c6532167ae41afcd5562410f9a71533a07949cb471f·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/slice/index.rs.html#683">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:·5f34f742880d97396289a284912d66b86ad5bd1e70491be2e61bf3799ee1a87a·...·]/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#524">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:·6d334ab345a7541eefa748023e249ab5c6ca60dd03bf14dba155f15653a7a337·...·]/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.83.0/src/core/slice/index.rs.html#524">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:·df98a65d132183cb2757bad2e4fd09929c249ad86dc58d5dad41ac2de66111c5·...·]/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="../../src/core/slice/index.rs.html#764">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:·ac5e4522238a6f658ba02a7b993b2ce1f58fa2696566a8f6a0e3f184c940262e·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/slice/index.rs.html#764">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:·4bb72048303ac22e43e7f1280cf09478c914c603c9d4029f19940cd4318a97e8·...·]/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.5 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#601-603">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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#601-603">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.83.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.83.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·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.89 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#223">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.0/src/core/str/converts.rs.html#223">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.83.0/core/primitive.point[·...·truncated·by·diffoscope;·len:·288,·SHA:·be869f659a2887ecba214a86d9387676f4a20ed3d7ce3c96d95525d40ecf5ce6·...·]/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.98 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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#242">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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.83.0/src/core/str/converts.rs.html#242">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="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>,2 ····ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.u8.html">u8</a>,
3 ····len:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,3 ····len:·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,
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>4 )·-&gt;·&amp;'a·mut·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>
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>
11.0 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#87">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.0/src/core/str/converts.rs.html#87">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.83.0/core/primitive.u8.html">u8</a>])·-&gt;·[·...·truncated·by·diffoscope;·len:·197,·SHA:·883a2b624e15d54d9e581e5ef73de2a1d2f857c1f20a2de7968ac49fda5a9c5a·...·]/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="../../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·slice2 <p>A·string·slice·(<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>),·and·a·byte·slice
3 (<a·href="../../core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>)·is·made·of·bytes,·so·this·function·converts·between3 (<a·href="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>·of·it,·this·function·is·one·way·to·have·a14 <a·href="https://doc.rust-lang.org/1.83.0/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.42 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#131">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.0/src/core/str/converts.rs.html#131">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.83.0/core/primitive.u8.html">u8</a>])·-&g[·...·truncated·by·diffoscope;·len:·204,·SHA:·3eb478c1e8b001c42ca53e4619b2d1ddb46c81a5118b7699e701a4f457d3313f·...·]/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.66 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#172">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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.0/src/core/str/converts.rs.html#172">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.83.0/core/primitive.u8.htm[·...·truncated·by·diffoscope;·len:·82,·SHA:·fcebd1a70877f8cc0155def26796f493325da29228fcab44a17acf3678d42eed·...·]/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.7 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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#201">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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.0/src/core/str/converts.rs.html#201">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.83.0/core/primitiv[·...·truncated·by·diffoscope;·len:·94,·SHA:·649041ed84ec0100343591975b35b371bea17d471e39ff0678bf7036457e6ec3·...·]/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.7 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="../sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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-688">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="../sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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-688">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="../../core/primitive.str.html"·title="primitive·str">See·also·the·<code>str</code>·primitive·type</a>.</em></p>2 <p><em><a·href="https://doc.rust-lang.org/1.83.0/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="../../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,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.83.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:·cf9966d7ee9f3086ce75d2376cd1a9e5ed0f3f2b6d18fac8d6d0c7696354ba1a·...·]/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="../../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,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.83.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:·3363b29474f9773ff2ebe21fe126ad1140731cff97353e68bac90be9286fa9c1·...·]/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="../../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>9 (<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>)·and·byte·slices·(<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>).</div></li>[·...·truncated·by·diffoscope;·len:·275,·SHA:·59866a7f21eb90c4fdd00f99c730095384ef05fd5ae30d9d9b8bec0a22d3376d·...·]/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.6 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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#169">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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.83.0/src/core/str/pattern.rs.html#169">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·enum·SearchStep·{
2 ····Match(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>),2 ····Match(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>),3 ····Reject(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·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="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../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·match8 </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.83.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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·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="../../../src/core/str/pattern.rs.html#168">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:·a71b3510e46e916b3ecfc1549def3a0292353afc7920ac2cd9839f082c1d9283·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#168">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.83.0/core/clone/trait.Clone.html"·title="t[·...·truncated·by·diffoscope;·len:·5255,·SHA:·d4fe60066be3065f6484669c8578d301d94f027c51afa71a1ea2ff43907b25bc·...·]/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="../../../src/core/str/pattern.rs.html#168">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:·e8bfcad8f371739a12d69da100bbb2c0d67a071f1d38c6579b47a237f92486aa·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#168">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.83.0/core/marker/trait.Copy.html"·title="tr[·...·truncated·by·diffoscope;·len:·4365,·SHA:·dbedb09064f6828b9ace2532b7594c69021e532f99a77b39244af977bd0bd957·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where18 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</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·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·a7d1f388ba07396e87261271b8aa586ab0c147478908836ee7ff521ef25e555e·...·]/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="https://doc.rust-lang.org/1.83.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:·e3c2dfd0abdfa96e39e7563c61a47234eecf86fd351479c84cf8586392bfaf0c·...·]/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="../../../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:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../../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:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="../sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="../sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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.83.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>
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="../../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>·type.</p>7 <a·href="https://doc.rust-lang.org/1.83.0/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="../../../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·closures10 <a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>,·<a·href="https://doc.rust-lang.org/1.83.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:·ca513b37d1112a78a9248030a24818c26bee0b27f420f8c7e3d8fe914d245426·...·]/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 19, 8 lines modifiedOffset 19, 8 lines modified
19 <span·class="comment">//·array·of·chars·pattern19 <span·class="comment">//·array·of·chars·pattern
20 </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>));20 </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>));
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></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>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></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>
26 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>26 can·be·used·for·a·<a·href="https://doc.rust-lang.org/1.83.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>
78.0 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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#796">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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.83.0/src/core/str/pattern.rs.html#796">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.83.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>
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#795">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:·b4379ed7c7159ece3b113c812e9de7142d69b1716f8d99c1193ec9755c910f2a·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#795">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:·bcc0c809de2cecddaadffde680b41bb5815546cf2f54aa9e9fe0617ce3fc3578·...·]/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="../../../src/core/str/pattern.rs.html#839">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.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.83.0/src/core/str/pattern.rs.html#839">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:·7cd094ddd0390a312acbff25199bc96a7c911cecc38028c1a14f2053829e5e3b·...·]/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="../../../src/core/str/pattern.rs.html#834">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:·10cba7730d28991451b5b96306bd932c6b36224686e7ad65a0c6cdd990c3ab5b·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#834">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:·bce69cfd7ffb02e80870b8d213c1b754287661de6fa107b0345e669e37c2a743·...·]/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="../../../src/core/str/pattern.rs.html#842">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:·7121250df6953e24baeba5d9efd2ae00aa7ba9e34d5b8fa3634d7931d581f6d3·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#842">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:·c40052b380d058bda5c6e26a240724ff2901f78333883e0c11a266b59b3c1449·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/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·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../../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:·a7d1f388ba07396e87261271b8aa586ab0c147478908836ee7ff521ef25e555e·...·]/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="https://doc.rust-lang.org/1.83.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:·e3c2dfd0abdfa96e39e7563c61a47234eecf86fd351479c84cf8586392bfaf0c·...·]/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.1 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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#790">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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.83.0/src/core/str/pattern.rs.html#790">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.83.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>
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#789">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:·ed79537c67a48468dd71321752caf98aa6b3329838cb41db787705335a76d1dd·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#789">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.83.0[·...·truncated·by·diffoscope;·len:·6082,·SHA:·8031a8f127f6d73251752a2a77a75bda3f96d7d31fa89b5fb8dee30ede216d0e·...·]/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="../../../src/core/str/pattern.rs.html#817">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.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.83.0/src/core/str/pattern.rs.html#817">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:·7cd094ddd0390a312acbff25199bc96a7c911cecc38028c1a14f2053829e5e3b·...·]/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="../../../src/core/str/pattern.rs.html#812">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:·9e55abeaa4d6a90e0f05ce28218df319e19bfb4f72d79801fa1216cd6bee1a1a·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#812">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:·774fd3e4bc49887ff9bd60e16cf4261614651f20e20e7e9eafa0b7e4c12f2811·...·]/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="../../../src/core/str/pattern.rs.html#820">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:·16f623b67b84b102525097b701e5566f0cba283ca313cbfe012b7ef561d301b5·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#820">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:·00ae81ce3f7f12714f6665155dfef8438eefcb099a33dcb9224c0dd9f78a4cc8·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/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·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../../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:·a7d1f388ba07396e87261271b8aa586ab0c147478908836ee7ff521ef25e555e·...·]/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="https://doc.rust-lang.org/1.83.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:·e3c2dfd0abdfa96e39e7563c61a47234eecf86fd351479c84cf8586392bfaf0c·...·]/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.7 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#882">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.0/src/core/str/pattern.rs.html#882">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="../../../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>3 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·25,·SHA:·cbf69a4b6bc7bdcfc29ad3b84606d5949b383bdc38074921084f9b9de28157a5·...·]/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="../../../src/core/str/pattern.rs.html#881">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">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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#881">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.83.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">where
5 ····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:·5529768766904bcab2df6f1e30644b48ebe6f8c9e0574ef3bfb40619935f4c80·...·]/src/core/str/pattern.rs.html#886-888">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="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·cla[·...·truncated·by·diffoscope;·len:·1960,·SHA:·05e4b53305c2a33dd65f9f4afe4f9460620d54dfbded409dc89aacc82abc1b5b·...·]/src/core/str/pattern.rs.html#886-888">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="../../../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:·dd5c0b69cc69b7db408f5b7ab9572e4aa52e545ced873a47cff942e2a4a2d1d4·...·]/src/core/str/pattern.rs.html#904-906">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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·1340,·SHA:·99524f4f68db771be3d896a63edcf40725045c7f3da3626dd6c385dbbbafa5e5·...·]/src/core/str/pattern.rs.html#904-906">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="../../../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:·c48dc76e6e2e2a940c41f3403cb6e04708dda068d18b0a491618326815de1874·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·1747,·SHA:·4aa1c49243a3e54a90f619c283a7554fd716aaf2702ffb98f69e72839919ebcc·...·]/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="../../../src/core/str/pattern.rs.html#908">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.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.83.0/src/core/str/pattern.rs.html#908">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:·7cd094ddd0390a312acbff25199bc96a7c911cecc38028c1a14f2053829e5e3b·...·]/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="../../../src/core/str/pattern.rs.html#897-899">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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#897-899">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="../../../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:·607e4313fb528e1deac5eb98a6cab8e426b8cbff66bfdae619a8bc1827bf1624·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·3938,·SHA:·2d0525a1953b981d173a7a1e5d1db5a8fa17009c396532ccc944641a148ba20f·...·]/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="../../../src/core/str/pattern.rs.html#911">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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#911">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="../../../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">where12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·528,·SHA:·35ee94c993feddfb7dfc93459a2647e1f190af0c1f08b231abd4364d6d224bbc·...·]/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="../../../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">where13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·54cab204c0cf9db9b2caf21adaf8d1a9c299e0d8fc6e06fb1534eee3d6eea798·...·]/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="../../../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">where14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a7d6ca30acf1933e2f183b2514f2cd8cca99d807f1e7516463cbcde25d12fe66·...·]/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="../../../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">where15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·7e96b49bc8d7e61db6c813de26fc17101ce2c18d8b1da2354d20404d8b8890ba·...·]/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="../../../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">where16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·085c6b08e07c9098a954c012353ea1bb45867e8b8b4956e66d5c055f5360fe2c·...·]/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="../../../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">where17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·0f3443507795e4f56439bfd465533285709cdfcecb317c7ed75bb4e752e4f80b·...·]/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="../../../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:·402707bc115b94bc3c3d598df3585c4b3c8bd5da052e5d973c9b2d24881ef2ce·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where18 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a960a822666d72720b4cbffd4fad8e3874c7976c43f28622934913c171d236b7·...·]/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="../../../core/marker/trait.Sized.html"·title="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:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where21 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</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·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="../../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../../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:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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:·a7d1f388ba07396e87261271b8aa586ab0c147478908836ee7ff521ef25e555e·...·]/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="https://doc.rust-lang.org/1.83.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:·e3c2dfd0abdfa96e39e7563c61a47234eecf86fd351479c84cf8586392bfaf0c·...·]/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="../../../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:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../../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:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.9 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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#353">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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.83.0/src/core/str/pattern.rs.html#353">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="../../../src/core/str/pattern.rs.html#352">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:·dbacc8ee19b3c4531df6373f08037316ef02ba5dce169cb17c79f448960600d0·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#352">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.83.0/core/clone/trait.[·...·truncated·by·diffoscope;·len:·5649,·SHA:·3be37d81aaf647ac22408ca0bc5f0ec302f799ede86d4eddb894c83c5f225e37·...·]/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="../../../src/core/str/pattern.rs.html#313">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.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.83.0/src/core/str/pattern.rs.html#313">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:·7cd094ddd0390a312acbff25199bc96a7c911cecc38028c1a14f2053829e5e3b·...·]/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="../../../src/core/str/pattern.rs.html#384">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:·f143af33ae964b79b3845da3d27b072711d73313913b35a413f75fe813503653·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#384">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:·7da8ebb5e8e0b9c9734a880c7cd81d3d760086534fc4e8ef984c535b8e8d635f·...·]/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="../../../src/core/str/pattern.rs.html#536">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:·9b586b90fb4821074995daccdb986345dada547394497bf5c8462ec47c117720·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#536">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:·19d3f277d574b4201f795c232e6d15744e4b9d898237b0dfa00e48848293cefb·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/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·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../../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:·a7d1f388ba07396e87261271b8aa586ab0c147478908836ee7ff521ef25e555e·...·]/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="https://doc.rust-lang.org/1.83.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:·e3c2dfd0abdfa96e39e7563c61a47234eecf86fd351479c84cf8586392bfaf0c·...·]/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.1 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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#852">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.0/src/core/str/pattern.rs.html#852">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="../../../src/core/str/pattern.rs.html#851">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:·6c60625af72300d51407dc2dcb12be283ae04ad0c1b93ed3593f2a30fe359b82·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#851">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.83.0/core[·...·truncated·by·diffoscope;·len:·5782,·SHA:·a6fd13a03c53b1399112cce368f31972f90ef84d4d053688ab8de49f4b0e32b3·...·]/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="../../../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.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.83.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:·7cd094ddd0390a312acbff25199bc96a7c911cecc38028c1a14f2053829e5e3b·...·]/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="../../../src/core/str/pattern.rs.html#854">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:·738fa55881d09a8f65b904529eac8e93b2dbc57f53ac2abb906ac3fdb717312e·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#854">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:·7068e9b725382d2a16c8d67bce05a611972f62a5b469a9b2c4328c29c78ca327·...·]/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="../../../src/core/str/pattern.rs.html#862">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:·e0dccabb3cf7ce9124de8a55b9cf1618ffe227586c71817182b43547a9cb1b6f·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#862">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:·b9880a843d9d56500109b3b8eb89d8204002b5db199559ff1600da5df5b52fe4·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/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·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../../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:·a7d1f388ba07396e87261271b8aa586ab0c147478908836ee7ff521ef25e555e·...·]/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="https://doc.rust-lang.org/1.83.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:·e3c2dfd0abdfa96e39e7563c61a47234eecf86fd351479c84cf8586392bfaf0c·...·]/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.7 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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#1033">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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.83.0/src/core/str/pattern.rs.html#1033">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="../../../src/core/str/pattern.rs.html#1031">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:·ce8a242f6262714e00aeef1998e75260e0008b81eb012e356e1726c596e243dc·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#1031">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.83.0/core/clon[·...·truncated·by·diffoscope;·len:·5687,·SHA:·96bdbab791167d035c5b7b9a6da0ab7e3dd0de24ecb5e926ce5346bf90f39bf4·...·]/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="../../../src/core/str/pattern.rs.html#313">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.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.83.0/src/core/str/pattern.rs.html#313">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:·7cd094ddd0390a312acbff25199bc96a7c911cecc38028c1a14f2053829e5e3b·...·]/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="../../../src/core/str/pattern.rs.html#1083">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:·96da3fa0f395fe437bd13bffaae9bb6a9db4c65c4d4783d933b84cd8e70d5b75·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#1083">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:·f00442ce02e87539180953d080699e5a9c3c2f9fd9b1cc40704f5c1715c48841·...·]/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="../../../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:·c0e6629255ccc80c91eaab83c7eb67f08a19953438894f5f4585d6c8dfce268a·...·]/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="https://doc.rust-lang.org/1.83.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:·acea1534ef793022d259fd67dfaa16fd5d6819d076df89a5708c4788a7a96f8b·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·d454e5e96a94c21829955a6828bddad2671cf6bb41a3edd22fabac1fea213adf·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·343295de9e8dbc52a7729e080d7cd6497937e171c5c34490ad4bf8461e12bd00·...·]/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="https://doc.rust-lang.org/1.83.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:·4ad14fa8ec7109dc6992b4e4c209abcdcd8a3fba8eec7068f1040a67ff8214b7·...·]/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="../../../core/marker/trait.Sized.html"·title="trait·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:·34d8c3e9ca959433892307e7473b377231ce85cfd771df2a98227bf4868e804d·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where8 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·e58f8258cd32d6cf0386fa69aaf9e014d9dbe8c3f9f21850101063d78e9c2283·...·]/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·cl[·...·truncated·by·diffoscope;·len:·1578,·SHA:·3f45713e81f7fb76f809782c1d4e24a0f38a2a6dc0bbbf4f7712e23ce4837eb4·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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·cla[·...·truncated·by·diffoscope;·len:·165,·SHA:·6206a2ba75249aa28b576429d5b7e12bdc60540f22aaa08d5789003cad1c2fff·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../../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:·a7d1f388ba07396e87261271b8aa586ab0c147478908836ee7ff521ef25e555e·...·]/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="https://doc.rust-lang.org/1.83.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:·e3c2dfd0abdfa96e39e7563c61a47234eecf86fd351479c84cf8586392bfaf0c·...·]/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"><[·...·truncated·by·diffoscope;·len:·1709,·SHA:·8f5bb79310376d503c906190cdb6ebe0377aa5e8200ed59967fa65d9d24686e1·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-[·...·truncated·by·diffoscope;·len:·1338,·SHA:·f488a4999ecb7f5633f9ab27f0a34e1c058c3e84a2cf8b0f61fcd511fbaf7d28·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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.6 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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#345">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.0/src/core/str/pattern.rs.html#345">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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../src/core/str/pattern.rs.html#536">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:·57c4f5c393f9fea732ddc67519995ad7a4d3c7c7c2c400b65ed3ebfa737f00c0·...·]/src/core/str/pattern.rs.html#911">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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#536">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:·ac7a861b41eb5b7a65eae30e3925429e41cf22a7319f7fbe60d1703121ffff5b·...·]/src/core/str/pattern.rs.html#911">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="../../../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:·2e8f020e0a454299d86cf4f20295b4f2ad6331d3f7d9bd1d12d74bb2fc58451c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·484,·SHA:·2a4f629b24744a2bfa2b73397bee4148015de8de5e819fa80937234f9fa3ead7·...·]/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>
59.1 KB
./usr/share/doc/rust-doc/html/alloc/str/pattern/trait.Pattern.html
    
Offset 1, 31 lines modifiedOffset 1, 31 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.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="#object-safety">Object·Safety</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>·{1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.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="#object-safety">Object·Safety</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.83.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.83.0/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="../../../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="https://doc.rust-lang.org/1.83.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;;
  
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="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="../../../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="https://doc.rust-lang.org/1.83.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>·{·...·}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.83.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.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>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.83.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/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="../../../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·class="primitive"·href="../../../core/primitive.str.html">str</a>&gt;·{·...·}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.83.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;<a·class="primitive"·href="https://doc.rust-l[·...·truncated·by·diffoscope;·len:·14,·SHA:·1e0187c876907ab0ef21a560aeba8833d8f29fa7374b1d248490cd920f775c2b·...·]/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="../../../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;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.83.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;'a·<a·class="primitive"·href="https://doc.rus[·...·truncated·by·diffoscope;·len:·17,·SHA:·079f0e222e710a9f5f90a78c9edb76b1516551742e3359e9ec068911b173758b·...·]/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 }</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>13 }</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 <p>A·<code>Pattern</code>·expresses·that·the·implementing·type14 <p>A·<code>Pattern</code>·expresses·that·the·implementing·type
15 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>15 can·be·used·as·a·string·pattern·for·searching·in·a·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.</p>
16 <p>For·example,·both·<code>'a'</code>·and·<code>"aa"</code>·are·patterns·that16 <p>For·example,·both·<code>'a'</code>·and·<code>"aa"</code>·are·patterns·that
17 would·match·at·index·<code>1</code>·in·the·string·<code>"baaaab"</code>.</p>17 would·match·at·index·<code>1</code>·in·the·string·<code>"baaaab"</code>.</p>
18 <p>The·trait·itself·acts·as·a·builder·for·an·associated18 <p>The·trait·itself·acts·as·a·builder·for·an·associated
19 <a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>·type,·which·does·the·actual·work·of·finding19 <a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>·type,·which·does·the·actual·work·of·finding
20 occurrences·of·the·pattern·in·a·string.</p>20 occurrences·of·the·pattern·in·a·string.</p>
21 <p>Depending·on·the·type·of·the·pattern,·the·behaviour·of·methods·like21 <p>Depending·on·the·type·of·the·pattern,·the·behaviour·of·methods·like
22 <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·describes22 <a·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.str.html#method.contains"·title="method·str::contains"><code>str::contains</code></a>·can·change.·The·table·below·describes
23 some·of·those·behaviours.</p>23 some·of·those·behaviours.</p>
24 <div><table><thead><tr><th>Pattern·type</th><th>Match·condition</th></tr></thead><tbody>24 <div><table><thead><tr><th>Pattern·type</th><th>Match·condition</th></tr></thead><tbody>
25 <tr><td><code>&amp;str</code></td><td>is·substring</td></tr>25 <tr><td><code>&amp;str</code></td><td>is·substring</td></tr>
26 <tr><td><code>char</code></td><td>is·contained·in·string</td></tr>26 <tr><td><code>char</code></td><td>is·contained·in·string</td></tr>
27 <tr><td><code>&amp;[char]</code></td><td>any·char·in·slice·is·contained·in·string</td></tr>27 <tr><td><code>&amp;[char]</code></td><td>any·char·in·slice·is·contained·in·string</td></tr>
28 <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>28 <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>&amp;&amp;str</code></td><td>is·substring</td></tr>29 <tr><td><code>&amp;&amp;str</code></td><td>is·substring</td></tr>
Offset 50, 47 lines modifiedOffset 50, 47 lines modified
50 </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>));50 </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·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>));51 <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">'c'</span>,·<span·class="string">'d'</span>][..]),·<span·class="prelude-val">None</span>);52 <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="comment">//·FnMut(char)·-&gt;·bool53 <span·class="comment">//·FnMut(char)·-&gt;·bool
54 </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>));54 </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·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>55 <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 </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>56 </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.83.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></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·from57 </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.83.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.83.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·from
58 <code>self</code>·and·the·<code>haystack</code>·to·search·in.</p>58 <code>self</code>·and·the·<code>haystack</code>·to·search·in.</p>
59 </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>59 </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.83.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.83.0/core/p[·...·truncated·by·diffoscope;·len:·93,·SHA:·9d94d1c580251a3488b17b4b5b98ec69c9cad0835073d725ef3935d5b4e446af·...·]/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><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>60 </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.83.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.83.0/core/primiti[·...·truncated·by·diffoscope;·len:·87,·SHA:·c6b9d69943d8195c4727c59a1cc6fbc10ebc0f16ceb938fecbef66d314aee7ab·...·]/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_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">where61 </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.83.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:·66b4e734f2c547313e022ba5301e9114c58ed2eb87956a75e1b2089317a00e9a·...·]/core/primitive.bool.html">bool</a><div·class="where">where
62 ····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>62 ····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 </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>63 </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.83.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.83.0/core/p[·...·truncated·by·diffoscope;·len:·231,·SHA:·f45774d79f330337208ea0cb5d854c1af21a38ca94bda8a0d703a3fa693a2af0·...·]/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_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">where64 </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.83.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:·d53825dc0ecc71a743d772da647ee144256de74e9ef8ea27ade668388a565108·...·]/core/primitive.str.html">str</a>&gt;<div·class="where">where
65 ····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>65 ····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 </div></details></div><h2·id="object-safety"·class="section-header">Object·Safety<a·href="#object-safety"·class="anchor">§</a></h2><div·class="object-safety-info">This·trait·is·<b>not</b>·<a·href="https://doc.rust-lang.org/1.83.0/reference/items/traits.html#object-safety">object·safe</a>.</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#545">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>66 </div></details></div><h2·id="object-safety"·class="section-header">Object·Safety<a·href="#object-safety"·class="anchor">§</a></h2><div·class="object-safety-info">This·trait·is·<b>not</b>·<a·href="https://doc.rust-lang.org/1.83.0/reference/items/traits.html#object-safety">object·safe</a>.</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.83.0/src/core/str/pattern.rs.html#545">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:·38facc85b03f61416f48f14c785aa448705bd17b455e4f2f482182010c8bd06b·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>.</p>
67 <h4·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h4>67 <h4·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h4>
68 <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>68 <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>
69 </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#546">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:·10220663593043ad7eb0b868f1b69643c9bd2416da04735cf2e6cf6c3086c1f5·...·]/core/primitive.str.html">str</a></h3></section></summary><div·class="docblock"><p>Non-allocating·substring·search.</p>69 </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.83.0/src/core/str/pattern.rs.html#546">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:·15fa4920619326d62cef64e67247ef12c6f136da0fd30399eb8f69fa6e96c16f·...·]/core/primitive.str.html">str</a></h3></section></summary><div·class="docblock"><p>Non-allocating·substring·search.</p>
70 <p>Will·handle·the·pattern·<code>""</code>·as·returning·empty·matches·at·each·character70 <p>Will·handle·the·pattern·<code>""</code>·as·returning·empty·matches·at·each·character
71 boundary.</p>71 boundary.</p>
72 <h4·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h4>72 <h4·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h4>
73 <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>73 <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>
74 </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#952">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-2439">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>74 </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.83.0/src/core/str/pattern.rs.html#952">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-2439">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>
75 <h4·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h4>75 <h4·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h4>
76 <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>76 <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>
77 </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:·ecb58516aedfd25b8c2800f0e3d32ed49b438f3ec584ccffc50041a6b031b42b·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·slice.</p>77 </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.83.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:·6615267eeb478fde5fcfde56fe5b7d0eea7e91192c6ee446df3088f605b5fc53·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·slice.</p>
78 <h4·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h4>78 <h4·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h4>
79 <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">'l'</span>,·<span·class="string">'l'</span>]·<span·class="kw">as·</span><span·class="kw-2">&amp;</span>[<span·class="kw">_</span>]),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));79 <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">'l'</span>,·<span·class="string">'l'</span>]·<span·class="kw">as·</span><span·class="kw-2">&amp;</span>[<span·class="kw">_</span>]),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));
80 <span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>,·<span·class="string">'l'</span>][..]),·<span·class="prelude-val">Some</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++++assert_eq!(%22Hello+world%22.find(%26%5B'l',+'l'%5D+as+%26%5B_%5D),+Some(2));%0A++++assert_eq!(%22Hello+world%22.find(%26%5B'l',+'l'%5D%5B..%5D),+Some(2));%0A%7D&amp;edition=2021"></a></div>80 <span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>,·<span·class="string">'l'</span>][..]),·<span·class="prelude-val">Some</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++++assert_eq!(%22Hello+world%22.find(%26%5B'l',+'l'%5D+as+%26%5B_%5D),+Some(2));%0A++++assert_eq!(%22Hello+world%22.find(%26%5B'l',+'l'%5D%5B..%5D),+Some(2));%0A%7D&amp;edition=2021"></a></div>
81 </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#873">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:·b81ae4b8bd5b1dee9305475c54e00548c6a39e59722e324e6eb28c39134c7ba3·...·]/core/primitive.str.html">str</a></h3></section></summary><div·class="docblock"><p>Delegates·to·the·<code>&amp;str</code>·impl.</p>81 </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.83.0/src/core/str/pattern.rs.html#873">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:·911f379aa26095669eb0309c61c95446608f8992d73241e2c3aaeead59110cb5·...·]/core/primitive.str.html">str</a></h3></section></summary><div·class="docblock"><p>Delegates·to·the·<code>&amp;str</code>·impl.</p>
82 </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#934">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:·a5fc60c81706df273bbe7bf084daa8d24fe217c05701cde7714ce75bc3f9cd51·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·array.</p>82 </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.83.0/src/core/str/pattern.rs.html#934">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:·fe5198edd215f4a8592b7e625664f7328478db5bfa240962df24695f969c4c3f·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·array.</p>
83 <h4·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h4>83 <h4·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h4>
84 <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>));84 <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>));
85 <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>85 <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>
86 </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#831">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#921-923">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">where86 </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.83.0/src/core/str/pattern.rs.html#831">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:·0f296f18d66ef66c08a183a2c521b4659b379a1081a9a14bd4f10aad039386f1·...·]/src/core/str/pattern.rs.html#921-923">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
87 ····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>87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·171,·SHA:·c769510b49ea3503a275573cb240c367d8aa3d4af6b1c071276ac99291d4ce32·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·that·match·the·given·predicate.</p>
88 <h4·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h4>88 <h4·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h4>
89 <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>));89 <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>));
90 <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>90 <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>
91 </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#925">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:·74d09f1c04a4fbbd2e265fb9086dfb27a754f8c93ea3e28ad51874116d9432c5·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·array.</p>91 </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.83.0/src/core/str/pattern.rs.html#925">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:·57f39d9c118965b85a6eaf3421a37c1ed641f0c7d84593b8d0177a910955d3b7·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·array.</p>
92 <h4·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h4>92 <h4·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h4>
93 <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>));93 <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>));
94 <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>94 <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>
95 </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#809">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>95 </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.83.0/src/core/str/pattern.rs.html#809">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.9 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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#273">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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.83.0/src/core/str/pattern.rs.html#273">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="../../../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;·{·...·}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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·525e5c4837cad2717d226714fc7a332b8cadf9fd1630355276e4954569f8b622·...·]/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;·{·...·}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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·525e5c4837cad2717d226714fc7a332b8cadf9fd1630355276e4954569f8b622·...·]/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="../../../src/core/str/pattern.rs.html#295">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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#295">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="../../../src/core/str/pattern.rs.html#300">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.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.83.0/src/core/str/pattern.rs.html#300">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.83.0/core/option[·...·truncated·by·diffoscope;·len:·225,·SHA:·8c1666ee1c1bbcfc32fc833b37cfd9992f8e6b2fad476d55aafa21fa813df8dd·...·]/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="../../../src/core/str/pattern.rs.html#313">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.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.83.0/src/core/str/pattern.rs.html#313">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.83.0/core/opti[·...·truncated·by·diffoscope;·len:·227,·SHA:·286b0fbd27bbf9273c50498fadca8a01c72e46f7992a26b7d21d13375405a2c0·...·]/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="../../../src/core/str/pattern.rs.html#462">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:·259dddde64bbb5443a1e93ec9f1c25347210db2a9b15dc464769fbbdc921a1f2·...·]/src/core/str/pattern.rs.html#904-906">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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#462">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:·7fabd274965e54e529c0ceed6b96474c7120d8b144b1cce7b0abb0032034bfca·...·]/src/core/str/pattern.rs.html#904-906">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="../../../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:·f9327311db295eff2f5dcf527b1f1ab253947c588efabce163d428e909ef9cb5·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·476,·SHA:·b68e46551d29523849f11285c2e4d837c49cb8e1ccb5fb7b6fcd489ee022f015·...·]/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>
30.2 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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#196">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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.83.0/src/core/str/pattern.rs.html#196">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="../../../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="https://doc.rust-lang.org/1.83.0/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="../../../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 ····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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·525e5c4837cad2717d226714fc7a332b8cadf9fd1630355276e4954569f8b622·...·]/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;·{·...·}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.83.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·525e5c4837cad2717d226714fc7a332b8cadf9fd1630355276e4954569f8b622·...·]/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="../../../src/core/str/pattern.rs.html#200">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>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.83.0/src/core/str/pattern.rs.html#200">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.83.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>
18 <p>Will·always·return·the·same·<a·href="../../../core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.</p>18 <p>Will·always·return·the·same·<a·href="https://doc.rust-lang.org/1.83.0/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="../../../src/core/str/pattern.rs.html#223">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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#223">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="../../../src/core/str/pattern.rs.html#232">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>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.83.0/src/core/str/pattern.rs.html#232">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.83.0/core/option/enum.Opti[·...·truncated·by·diffoscope;·len:·215,·SHA:·b448a4b3e56617031fbf1f83f8090774acf7017c825876a7c260aba6c15fdff7·...·]/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="../../../src/core/str/pattern.rs.html#248">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>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.83.0/src/core/str/pattern.rs.html#248">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.83.0/core/option/enum.Op[·...·truncated·by·diffoscope;·len:·217,·SHA:·c8235ff9c7a625291c0704098421f4185e68527bcfcf8618d60b83cfcc1dcc92·...·]/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="../../../src/core/str/pattern.rs.html#384">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:·13b460a21d58a6a88634d2a07693ac91baffbd8e6930e5b9e9a7de8d5f6a5559·...·]/src/core/str/pattern.rs.html#897-899">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="https://doc.rust-lang.org/1.83.0/src/core/str/pattern.rs.html#384">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:·72f2c3f0585c678c131b3701ef0da1117524e90a66f23f04da56b06feadb404e·...·]/src/core/str/pattern.rs.html#897-899">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="../../../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:·7308886d46e8d9e29e3608ee05a261a0712540103908732a3ae4bcb54c39bc4a·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·462,·SHA:·69eaa1c5d2945eac3470650ffaf519794731ad0853e1c0fd4c975bccc254d99b·...·]/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>
315 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Bytes.html
    
Offset 1, 203 lines modifiedOffset 1, 203 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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.83.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>
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>.2 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·ce25cc2f0404204202d2b1737c4888cd73bca912e165ac82389ccd6a2601631e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/trait.Clo[·...·truncated·by·diffoscope;·len:·7478,·SHA:·e70ea1ea5e3164a56948c4b31747f6748ddf33c159ee3d6ff22cc8c9d7f91268·...·]/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="../../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:·fa9f8ebc06b13e8ae09b45fb709d1291a5f8cb72fbf8ee464dca0375ab7141d5·...·]/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="https://doc.rust-lang.org/1.83.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:·d3aaf75c2b8b09226b81306213c0cbf69f5ca0b7d26181adc1508795b83f1d35·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,6 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,7 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes8 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,11 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
12 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:·4ce44cec73b045deb33cefda0877ab6dd4b5a42cae73ff534a9e37a5c2f4daeb·...·]/core/primitive.bool.html">bool</a><div·class="where">where12 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ebc8b12025e1e4c4651d07ef9d9177c99cc9ca933dd139f3adf63756deaf8e20·...·]/core/primitive.bool.html">bool</a><div·class="where">where
13 ····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:·605fe591b46afb7647efd0871da762682daeb0009fbe353d28a2cdff96ff5ab0·...·]/core/primitive.bool.html">bool</a><div·class="where">where13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·7dd4f3b635d4e6d67850786107b56932fb04b8f2e564fee2dfb752495d5ace75·...·]/core/primitive.bool.html">bool</a><div·class="where">where
14 ····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:·aea8157e1be26f90679470b9dfd0f425b3fdd5210258eb57ccf7ebf5aa057fb0·...·]/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="https://doc.rust-lang.org/1.83.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:·154bd1ed2dc96c5d438a9dd1dc189cd763b614d29b4ead74942a81c44060f9de·...·]/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="../../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:·f821a0f03b400003cca33cac49ab16aa14f1375457cd2faa8a7f4d5f21011eef·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where15 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9c76c43cbc1bcb5e6a744fedf9bdd5153601689f7b39643b1c9a0ad44be25e57·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
16 ····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:·c532fc3c0989b24f74396b3ac77a36ef06e75266a50410c9fefbbce029bbf4cb·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9b70c47b93ece03e7d2a88f8b1fcb400635df939e32d0252bdb2baba925cfae2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
17 ····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·its17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·19d25c08c28f34d7e53aef7210fba1980962c8eb234a0d1211db466f8de3eac7·...·]/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="../../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:·a873b4c75c8a968436dc62b4e87a7580d30de40963baff3fbee967b0a733b9e4·...·]/core/primitive.usize.html">usize</a>&gt;(18 index.·<a·href="https://doc.rust-lang.org/1.83.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:·4cd00b45d707d9c865878542bb65b20c17fe022435c754e0ed26a40c7f40e27b·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·62c64d3cb3fbcd135dabc3ee87f1bc0745e54ca915db3b84ee47a41d036bf91b·...·]/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="https://doc.rust-lang.org/1.83.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:·f03647c0e4e3c245cffd46e1a2e3e0911a7d8e3687be2d6c7c26495b3037c5f5·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
23 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>29 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
33 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::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·element37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
42 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
54 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····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,·but56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,59 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
60 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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>·over62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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;,69 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,71 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,74 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
76 ····T:·'a,76 ····T:·'a,
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;,77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,78 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where80 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,82 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
87 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the90 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
91 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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,93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
94 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(97 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,99 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the103 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·a8313b6a778719bf5ac1cfc509995665b3302ddc11b1179f6dbcd147135c0db7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where104 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·2b47a54c05cf05d15c81f512e99333fdb04014d72e61752de9d6401c48758847·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
107 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(107 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
108 ····&amp;mut·self,108 ····&amp;mut·self,
109 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where110 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
113 ····&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·returns113 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
114 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·505,·SHA:·64a44738d56581cdf023eae1bdf73ff7e107ee15ef5de488fdc524f626fe09f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where114 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsid[·...·truncated·by·diffoscope;·len:·640,·SHA:·82be97b32572f9ec7655349d312fbf13ae186c7293a5933209164b1a30072384·...·]/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="https://doc.rust-lang.org/1.83.0/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="https://doc.rust-lang.org/1.83.0/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·maximum·value·from·the117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
118 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/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="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="https://doc.rust-lang.org/1.83.0/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::Itera[·...·truncated·by·diffoscope;·len:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
121 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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,122 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····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·the124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
125 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·2bda7c0e9b5772a555bb689908791c4c7160f538659a6e1ec8976f71a8ff527b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where125 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
Max diff block lines reached; 86814/322249 bytes (26.94%) of diff not shown.
312 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.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:·65798c8eaee9e38c3ba452fd43b018a01e17661db869664cf2c26518353a5eab·...·]/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="../../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>.2 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·60e3a0f25bbbc88f118efede08d6203954986e18493b2bbc755d21ada8c5a892·...·]/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="https://doc.rust-lang.org/1.83.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:·7d2abae17d5bce39b23df79ed8ddbc9d05019fa32247d7d1ef86c7549fbb966d·...·]/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="../../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·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="https://doc.rust-lang.org/1.83.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.83.0/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, 210 lines modifiedOffset 24, 210 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="../../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:·3f2da8addab795d165f7d23d052573b2b1cc15b16c9f281b50c3d4d496bde2f0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/tra[·...·truncated·by·diffoscope;·len:·8647,·SHA:·fd49a0fcea9df22967f93411dad1c0d7373249c9a6758aa26ef169271619155d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes33 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
37 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::Itera[·...·truncated·by·diffoscope;·len:·5272,·SHA:·be352da2e6f61c49f03310a1bc58f7083db558dd42d8e0f4bace90e9ef21921c·...·]/core/primitive.usize.html">usize</a>&gt;(39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·6217,·SHA:·8ff5547ec0486721a5a9bbc401c99b26872a1ddf3afb8079189624a7ba31fd06·...·]/core/primitive.usize.html">usize</a>&gt;(
40 ····&amp;mut·self,40 ····&amp;mut·self,
41 )·-&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">where41 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·8748236e225f72a44be150d56b4c03428652d30a949e47fded1c589852b6b9a6·...·]/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="https://doc.rust-lang.org/1.83.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:·316a27cd861d4b663e9a2d596cf457841e8d7ba5b1d39a9d1a6c0644b07bb836·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
44 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where48 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····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>50 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
51 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where51 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
54 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where54 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element58 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
59 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where59 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="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·as62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
63 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where63 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
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'>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>·methods64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
65 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See65 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
66 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where66 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where68 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where70 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where72 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
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'>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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
75 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where75 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····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,·but77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
78 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where78 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,80 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</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::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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>·over83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
84 <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>,84 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
85 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where85 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
86 ····Self:·<a·class="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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
89 ····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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
90 ····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;,90 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,92 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,95 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
97 ····T:·'a,97 ····T:·'a,
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;,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,99 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,103 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
108 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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,110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
112 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
115 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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·reducing117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(118 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,123 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the124 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
128 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,128 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
129 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where129 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
130 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,130 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
131 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where131 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
132 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,132 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
133 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns133 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
134 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(134 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
Max diff block lines reached; 142191/318852 bytes (44.59%) of diff not shown.
307 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Chars.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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.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:·a98150dc1c9336d716a537d644694743fb776290b39c62275f7e872408603e60·...·]/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="../../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>.2 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·4c3333236d7fda2e455daa440b3ab6f41cc9507a69145fb7ea3c9d80fb0d98fd·...·]/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="https://doc.rust-lang.org/1.83.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:·d6f0d4c01823f442834ae328591444492429940ca4fabe14d91543f203511b49·...·]/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="../../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:·8551be6fe5511b43a08e47d09e60fe6aa663aa4b00d8ed99a37f39fec2afe7f7·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/trait.Clon[·...·truncated·by·diffoscope;·len:·8429,·SHA:·9469528bca7c6ac01b5abf6e62e0b2e785f1d0a360cdb717ddbd09800ff06e71·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes18 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
22 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·e724ea73ff8714f3e8289423376abd05ed60b39ea23ed27105185f015b2de1d1·...·]/core/primitive.usize.html">usize</a>&gt;(24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7402,·SHA:·7e3f6d4623d110333be6161e189e2af881b154245c1e1c32cea5a6ac9c298829·...·]/core/primitive.usize.html">usize</a>&gt;(
25 ····&amp;mut·self,25 ····&amp;mut·self,
26 )·-&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">where26 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·c77f160abd5aa8255f60e612a9ef5cd7d877445864098494a67c6d4c5935bbfc·...·]/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="https://doc.rust-lang.org/1.83.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:·c63b5b6d999e5cef24025ea1d5d574312caa1ff70d29bc23147c49818f1213db·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
29 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>35 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
39 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
48 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
60 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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,·but62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,65 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
66 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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>·over68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
77 ····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;,77 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····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;,80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
82 ····T:·'a,82 ····T:·'a,
83 ····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;,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
84 ····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,84 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.85 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
86 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where86 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
92 ····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·returns92 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
93 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where93 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the96 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
97 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where97 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where100 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(103 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,105 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where106 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the109 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where116 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where122 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,124 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
125 ····&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·returns125 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 85806/314216 bytes (27.31%) of diff not shown.
281 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.EncodeUtf16.html
    
Offset 1, 193 lines modifiedOffset 1, 193 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.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:·dcd73fe5d2a9a8027b4d6f53170a2580c48a051e94fe1815dde93756caecdc05·...·]/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="../../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>.2 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·f60f8cda0452ff2a98b3e6056b9114fee97cb7873448b8b337804dffdf602d51·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/tr[·...·truncated·by·diffoscope;·len:·7257,·SHA:·3146e7c060001b230166b1d7d6a8ad72475781f5a0192de27ae7446fe6cdba9b·...·]/core/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">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">where6 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
11 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
13 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where15 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
16 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····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>17 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where18 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
19 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
21 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where21 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element25 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
26 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where26 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
29 ····Self:·<a·class="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·as29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
30 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where30 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</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·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>·methods31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
32 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See32 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
33 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where33 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where35 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
38 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
40 ····Self:·<a·class="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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<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></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
42 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where42 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····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,·but44 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
45 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where45 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,47 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
48 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····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>·over50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
51 <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>,51 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
52 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where52 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
53 ····Self:·<a·class="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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
56 ····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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
57 ····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;,57 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
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'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read[·...·truncated·by·diffoscope;·len:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
59 ····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;,59 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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><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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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;,62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
63 ····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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····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,65 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
66 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where66 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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,68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
69 ····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·returns69 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
70 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where70 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
73 ····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·the73 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
74 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where74 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····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,76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
77 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where77 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
80 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(80 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
81 ····&amp;mut·self,81 ····&amp;mut·self,
82 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,82 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
83 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····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;,85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
86 ····&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·the86 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
87 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where87 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/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="https://doc.rust-lang.org/1.83.0/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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
93 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
96 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(96 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····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,98 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 )·-&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">where99 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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;,101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
102 ····&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·returns102 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
103 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where103 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,106 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····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·the108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
109 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
112 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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,113 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····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·the115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
116 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·2bda7c0e9b5772a555bb689908791c4c7160f538659a6e1ec8976f71a8ff527b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
119 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="Stab[·...·truncated·by·diffoscope;·len:·374,·SHA:·226a4802edd499ddb037006c2857fac9e6f09377237c3b627160791ee1a144db·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where119 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
120 ····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;,120 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
121 ····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;,121 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
122 ····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"·h[·...·truncated·by·diffoscope;·len:·791,·SHA:·f5902021ddcae0e82c45a63765acd5619f1133cb4cd706ecdcbc189bc48faf74·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
123 ····T:·'a·+·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,123 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
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"·h[·...·truncated·by·diffoscope;·len:·794,·SHA:·d0ca0c5caa655bf4cfd9cfe73387719c5cb7ab9b59d7fa1e327fed2a9fa87f73·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
125 ····T:·'a·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,125 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</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"·h[·...·truncated·by·diffoscope;·len:·894,·SHA:·a6f10af5a2c3c1fabfc2256036d718962f5270357278fc34368c1312911ae5a2·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1110,·SHA:·8e928a34adcfe6314437c983df41039798fd9de66cfc14fac543f6c07926f3c2·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where
127 ····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·[·...·truncated·by·diffoscope;·len:·638,·SHA:·1fa3dae05c94a6dd0704ebaee4ec444898dd5e900453e990e08833ec04f7570e·...·]/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">where127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></sectio[·...·truncated·by·diffoscope;·len:·827,·SHA:·d3f339881e9074f32a4aa427d5a1514453148df4cb20556a2037ee8ccc54900d·...·]/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
Max diff block lines reached; 86308/287955 bytes (29.97%) of diff not shown.
288 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.EscapeDebug.html
    
Offset 1, 191 lines modifiedOffset 1, 191 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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.83.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:·36cfd9c62ff246ae15c0f66eeefc8c3ad40e71a90084128df7294472c2e06a79·...·]/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="../../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:·faf30b7f6c9744ec9b265b17c94074de9dc90d203f6f4b4863d138f30db5bb95·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/tr[·...·truncated·by·diffoscope;·len:·8790,·SHA:·87aedc93d8e96f0716782e42db04bb81744875337450cb63942a649fadec03d1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,4 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·3e844e2b7cdf6b70db94bc4fe427c97e0a5747087b4c5e5e415b3c6aa15c846d·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·returns
6 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:·dd9db74393a838be07ced41296ad788ed17881a97526293624798c8f9d9fb954·...·]/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="https://doc.rust-lang.org/1.83.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:·5fead5c38579714bd78eb3fd1991a4933cc3adac61694f1a698a209cf7d2939d·...·]/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="../../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,7 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·3e844e2b7cdf6b70db94bc4fe427c97e0a5747087b4c5e5e415b3c6aa15c846d·...·]/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="../../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:·81dd86ac9f35c6fbb5db41ddce31ef92065251b5806ea0d02cfeb76748bc61fe·...·]/core/primitive.usize.html">usize</a>&gt;(8 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·2e672dde22ab34099eb36c4464a6afeee4ef6fe51e5685bcd621e150f1c3ea18·...·]/core/primitive.usize.html">usize</a>&gt;(
9 ····&amp;mut·self,9 ····&amp;mut·self,
10 )·-&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">where10 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
12 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
15 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where19 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>21 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each24 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
25 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element29 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
34 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
46 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····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,·but48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,51 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
52 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····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>·over54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
55 <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 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
56 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where56 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
61 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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><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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
63 ····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;,63 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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;,66 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
67 ····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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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,69 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
70 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:·d5126ad922d22b11df569bcedd40ea1cb0c9e317f047f58c89ce85c324f3778d·...·]/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">where70 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.83.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:·e3d897d44df3dae7ac7124bbc28956b2162c6cb742072d9f945cc178f70aeae6·...·]/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
71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
73 ····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·the73 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
74 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:·2b096dde994cfe56c8d19079db1c165d5a3bf7b9952c836db68d378ef764adea·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where74 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·55da9d2eafc5b29aede623a11a0bd0fd119d24fed5bbdee7540356cdb8aeefc9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
77 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(77 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
78 ····&amp;mut·self,78 ····&amp;mut·self,
79 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,79 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
80 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····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;,82 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····&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·the83 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
84 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where84 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where90 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
93 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(93 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
94 ····&amp;mut·self,94 ····&amp;mut·self,
95 ····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,95 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where96 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····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;,98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
99 ····&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·returns99 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
100 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where100 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where102 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,103 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····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·the105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
106 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where106 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
109 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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,110 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····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·the112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
113 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·2bda7c0e9b5772a555bb689908791c4c7160f538659a6e1ec8976f71a8ff527b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where113 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
116 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="Stab[·...·truncated·by·diffoscope;·len:·374,·SHA:·226a4802edd499ddb037006c2857fac9e6f09377237c3b627160791ee1a144db·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where116 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
117 ····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;,117 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
118 ····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;,118 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
119 ····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"·h[·...·truncated·by·diffoscope;·len:·791,·SHA:·f5902021ddcae0e82c45a63765acd5619f1133cb4cd706ecdcbc189bc48faf74·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
120 ····T:·'a·+·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,120 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
121 ····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"·h[·...·truncated·by·diffoscope;·len:·794,·SHA:·d0ca0c5caa655bf4cfd9cfe73387719c5cb7ab9b59d7fa1e327fed2a9fa87f73·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
122 ····T:·'a·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,122 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,
123 ····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"·h[·...·truncated·by·diffoscope;·len:·894,·SHA:·a6f10af5a2c3c1fabfc2256036d718962f5270357278fc34368c1312911ae5a2·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1110,·SHA:·8e928a34adcfe6314437c983df41039798fd9de66cfc14fac543f6c07926f3c2·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where
124 ····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·[·...·truncated·by·diffoscope;·len:·638,·SHA:·1fa3dae05c94a6dd0704ebaee4ec444898dd5e900453e990e08833ec04f7570e·...·]/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">where124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></sectio[·...·truncated·by·diffoscope;·len:·827,·SHA:·d3f339881e9074f32a4aa427d5a1514453148df4cb20556a2037ee8ccc54900d·...·]/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
125 ····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_c[·...·truncated·by·diffoscope;·len:·697,·SHA:·fd0d6cffab1a68f571b766f608c101b4ddec3199b6f93067b5af5142f4d2006a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.sum"·class="fn">sum</a>&lt;S&gt;(self)·-&gt;·S<div·class="where">where125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·805,·SHA:·db821f83ebf184bf07a7ca8ac583e86450594bcadd34e549d62fba85a8c073c6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.sum"·class="fn">sum</a>&lt;S&gt;(self)·-&gt;·S<div·class="where">where
126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····S:·<a·class="trait"·href="../../core/iter/traits/accum/trait.Sum.html"·title="trait·core::iter::traits::accum::Sum">Sum</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::It[·...·truncated·by·diffoscope;·len:·604,·SHA:·4c4ea9120c18c216f81553e20681dbbd5e82023351173919f4b997280851338a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.product"·class="fn">product</a>&lt;P&gt;(self)·-&gt;·P<div·class="where">where127 ····S:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/accum/trait.Sum.html"·title="trait·core::iter::traits::accum::Sum">Sum</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedt[·...·truncated·by·diffoscope;·len:·739,·SHA:·408508692ba3c37258d190a20eafb696aebe5aef65aa2b970326dec286fb9403·...·]/core/iter/traits/iterator/trait.Iterator.html#method.product"·class="fn">product</a>&lt;P&gt;(self)·-&gt;·P<div·class="where">where
Max diff block lines reached; 89061/294436 bytes (30.25%) of diff not shown.
288 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.EscapeDefault.html
    
Offset 1, 191 lines modifiedOffset 1, 191 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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.83.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:·a3e01b0d3609d9533d5d74d39cc5424f272487054ca93fa6c5367e326e986f8d·...·]/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="../../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:·96d0be53229a6f57e10a970d88df880f29f4d599ddc26aa941067c656bc72c50·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/[·...·truncated·by·diffoscope;·len:·8836,·SHA:·1729342e4363b8cddf830bcceb8a10a58551dc283ef3736eb06c9b4934eb5c2f·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,4 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·db75f0cf67b3deb4abae5bc5785275ce47d682f3c4ca361ca8fa867d581c7822·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·returns
6 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:·dd9db74393a838be07ced41296ad788ed17881a97526293624798c8f9d9fb954·...·]/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="https://doc.rust-lang.org/1.83.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:·5fead5c38579714bd78eb3fd1991a4933cc3adac61694f1a698a209cf7d2939d·...·]/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="../../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,7 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·db75f0cf67b3deb4abae5bc5785275ce47d682f3c4ca361ca8fa867d581c7822·...·]/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="../../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:·81dd86ac9f35c6fbb5db41ddce31ef92065251b5806ea0d02cfeb76748bc61fe·...·]/core/primitive.usize.html">usize</a>&gt;(8 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·2e672dde22ab34099eb36c4464a6afeee4ef6fe51e5685bcd621e150f1c3ea18·...·]/core/primitive.usize.html">usize</a>&gt;(
9 ····&amp;mut·self,9 ····&amp;mut·self,
10 )·-&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">where10 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
12 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
15 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where19 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>21 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each24 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
25 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element29 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
34 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
46 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····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,·but48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,51 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
52 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····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>·over54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
55 <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 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
56 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where56 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
61 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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><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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
63 ····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;,63 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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;,66 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
67 ····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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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,69 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
70 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:·d5126ad922d22b11df569bcedd40ea1cb0c9e317f047f58c89ce85c324f3778d·...·]/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">where70 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.83.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:·e3d897d44df3dae7ac7124bbc28956b2162c6cb742072d9f945cc178f70aeae6·...·]/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
71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
73 ····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·the73 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
74 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:·2b096dde994cfe56c8d19079db1c165d5a3bf7b9952c836db68d378ef764adea·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where74 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·55da9d2eafc5b29aede623a11a0bd0fd119d24fed5bbdee7540356cdb8aeefc9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
77 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(77 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
78 ····&amp;mut·self,78 ····&amp;mut·self,
79 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,79 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
80 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····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;,82 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····&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·the83 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
84 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where84 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where90 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
93 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(93 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
94 ····&amp;mut·self,94 ····&amp;mut·self,
95 ····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,95 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where96 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····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;,98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
99 ····&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·returns99 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
100 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where100 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where102 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,103 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····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·the105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
106 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where106 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
109 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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,110 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····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·the112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
113 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·2bda7c0e9b5772a555bb689908791c4c7160f538659a6e1ec8976f71a8ff527b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where113 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
116 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="Stab[·...·truncated·by·diffoscope;·len:·374,·SHA:·226a4802edd499ddb037006c2857fac9e6f09377237c3b627160791ee1a144db·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where116 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
117 ····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;,117 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
118 ····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;,118 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
119 ····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"·h[·...·truncated·by·diffoscope;·len:·791,·SHA:·f5902021ddcae0e82c45a63765acd5619f1133cb4cd706ecdcbc189bc48faf74·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
120 ····T:·'a·+·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,120 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
121 ····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"·h[·...·truncated·by·diffoscope;·len:·794,·SHA:·d0ca0c5caa655bf4cfd9cfe73387719c5cb7ab9b59d7fa1e327fed2a9fa87f73·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
122 ····T:·'a·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,122 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,
123 ····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"·h[·...·truncated·by·diffoscope;·len:·894,·SHA:·a6f10af5a2c3c1fabfc2256036d718962f5270357278fc34368c1312911ae5a2·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1110,·SHA:·8e928a34adcfe6314437c983df41039798fd9de66cfc14fac543f6c07926f3c2·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where
124 ····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·[·...·truncated·by·diffoscope;·len:·638,·SHA:·1fa3dae05c94a6dd0704ebaee4ec444898dd5e900453e990e08833ec04f7570e·...·]/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">where124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></sectio[·...·truncated·by·diffoscope;·len:·827,·SHA:·d3f339881e9074f32a4aa427d5a1514453148df4cb20556a2037ee8ccc54900d·...·]/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
125 ····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_c[·...·truncated·by·diffoscope;·len:·697,·SHA:·fd0d6cffab1a68f571b766f608c101b4ddec3199b6f93067b5af5142f4d2006a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.sum"·class="fn">sum</a>&lt;S&gt;(self)·-&gt;·S<div·class="where">where125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·805,·SHA:·db821f83ebf184bf07a7ca8ac583e86450594bcadd34e549d62fba85a8c073c6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.sum"·class="fn">sum</a>&lt;S&gt;(self)·-&gt;·S<div·class="where">where
126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····S:·<a·class="trait"·href="../../core/iter/traits/accum/trait.Sum.html"·title="trait·core::iter::traits::accum::Sum">Sum</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::It[·...·truncated·by·diffoscope;·len:·604,·SHA:·4c4ea9120c18c216f81553e20681dbbd5e82023351173919f4b997280851338a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.product"·class="fn">product</a>&lt;P&gt;(self)·-&gt;·P<div·class="where">where127 ····S:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/accum/trait.Sum.html"·title="trait·core::iter::traits::accum::Sum">Sum</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedt[·...·truncated·by·diffoscope;·len:·739,·SHA:·408508692ba3c37258d190a20eafb696aebe5aef65aa2b970326dec286fb9403·...·]/core/iter/traits/iterator/trait.Iterator.html#method.product"·class="fn">product</a>&lt;P&gt;(self)·-&gt;·P<div·class="where">where
Max diff block lines reached; 89229/294812 bytes (30.27%) of diff not shown.
288 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.EscapeUnicode.html
    
Offset 1, 191 lines modifiedOffset 1, 191 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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.83.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:·a3e01b0d3609d9533d5d74d39cc5424f272487054ca93fa6c5367e326e986f8d·...·]/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="../../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:·eb937b0951693feb7c1dbe669eff68a10235347a40bb3fb7abd4f3550edb2e3e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/[·...·truncated·by·diffoscope;·len:·8836,·SHA:·1529368282d9f495ba5ae7de6b067a6f11af6e56857eae15794f9b66d0fb4a53·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,4 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·db75f0cf67b3deb4abae5bc5785275ce47d682f3c4ca361ca8fa867d581c7822·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·returns
6 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:·dd9db74393a838be07ced41296ad788ed17881a97526293624798c8f9d9fb954·...·]/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="https://doc.rust-lang.org/1.83.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:·5fead5c38579714bd78eb3fd1991a4933cc3adac61694f1a698a209cf7d2939d·...·]/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="../../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,7 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·db75f0cf67b3deb4abae5bc5785275ce47d682f3c4ca361ca8fa867d581c7822·...·]/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="../../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:·81dd86ac9f35c6fbb5db41ddce31ef92065251b5806ea0d02cfeb76748bc61fe·...·]/core/primitive.usize.html">usize</a>&gt;(8 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·2e672dde22ab34099eb36c4464a6afeee4ef6fe51e5685bcd621e150f1c3ea18·...·]/core/primitive.usize.html">usize</a>&gt;(
9 ····&amp;mut·self,9 ····&amp;mut·self,
10 )·-&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">where10 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
12 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
15 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
17 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where19 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>21 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
24 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each24 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
25 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element29 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
34 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::Itera[·...·truncated·by·diffoscope;·len:·1018,·SHA:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
46 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····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,·but48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,51 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
52 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
53 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····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>·over54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
55 <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 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
56 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where56 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
57 ····Self:·<a·class="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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
61 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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><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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
63 ····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;,63 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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;,66 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
67 ····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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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,69 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
70 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:·d5126ad922d22b11df569bcedd40ea1cb0c9e317f047f58c89ce85c324f3778d·...·]/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">where70 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.83.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:·e3d897d44df3dae7ac7124bbc28956b2162c6cb742072d9f945cc178f70aeae6·...·]/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
71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
73 ····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·the73 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
74 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:·2b096dde994cfe56c8d19079db1c165d5a3bf7b9952c836db68d378ef764adea·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where74 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·55da9d2eafc5b29aede623a11a0bd0fd119d24fed5bbdee7540356cdb8aeefc9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
77 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(77 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
78 ····&amp;mut·self,78 ····&amp;mut·self,
79 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,79 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
80 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····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;,82 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····&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·the83 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
84 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where84 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
90 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where90 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
93 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(93 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
94 ····&amp;mut·self,94 ····&amp;mut·self,
95 ····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,95 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where96 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····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;,98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
99 ····&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·returns99 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
100 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where100 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
102 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where102 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,103 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····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·the105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
106 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where106 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
108 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
109 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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where109 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,110 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····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·the112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
113 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·2bda7c0e9b5772a555bb689908791c4c7160f538659a6e1ec8976f71a8ff527b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where113 specified·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
116 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="Stab[·...·truncated·by·diffoscope;·len:·374,·SHA:·226a4802edd499ddb037006c2857fac9e6f09377237c3b627160791ee1a144db·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where116 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.0/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"><spa[·...·truncated·by·diffoscope;·len:·482,·SHA:·61d6ad3c505b048c43b384aa5fff40d237982d497f23ee160ff9e1e6165d5c3e·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
117 ····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;,117 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
118 ····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;,118 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
119 ····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"·h[·...·truncated·by·diffoscope;·len:·791,·SHA:·f5902021ddcae0e82c45a63765acd5619f1133cb4cd706ecdcbc189bc48faf74·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·518af5d54c4fbbedf6faa1f4bac6d0fe0d48f1657ead3e79dc04fd065ba1d1dc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
120 ····T:·'a·+·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,120 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
121 ····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"·h[·...·truncated·by·diffoscope;·len:·794,·SHA:·d0ca0c5caa655bf4cfd9cfe73387719c5cb7ab9b59d7fa1e327fed2a9fa87f73·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·fa3f4d7da02d45ad2d7c1146bf87930c33894df33986356b24f931b660d8ca8a·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt;<div·class="where">where
122 ····T:·'a·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,122 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,
123 ····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"·h[·...·truncated·by·diffoscope;·len:·894,·SHA:·a6f10af5a2c3c1fabfc2256036d718962f5270357278fc34368c1312911ae5a2·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1110,·SHA:·8e928a34adcfe6314437c983df41039798fd9de66cfc14fac543f6c07926f3c2·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt;<div·class="where">where
124 ····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·[·...·truncated·by·diffoscope;·len:·638,·SHA:·1fa3dae05c94a6dd0704ebaee4ec444898dd5e900453e990e08833ec04f7570e·...·]/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">where124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></sectio[·...·truncated·by·diffoscope;·len:·827,·SHA:·d3f339881e9074f32a4aa427d5a1514453148df4cb20556a2037ee8ccc54900d·...·]/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
125 ····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_c[·...·truncated·by·diffoscope;·len:·697,·SHA:·fd0d6cffab1a68f571b766f608c101b4ddec3199b6f93067b5af5142f4d2006a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.sum"·class="fn">sum</a>&lt;S&gt;(self)·-&gt;·S<div·class="where">where125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·805,·SHA:·db821f83ebf184bf07a7ca8ac583e86450594bcadd34e549d62fba85a8c073c6·...·]/core/iter/traits/iterator/trait.Iterator.html#method.sum"·class="fn">sum</a>&lt;S&gt;(self)·-&gt;·S<div·class="where">where
126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····S:·<a·class="trait"·href="../../core/iter/traits/accum/trait.Sum.html"·title="trait·core::iter::traits::accum::Sum">Sum</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::It[·...·truncated·by·diffoscope;·len:·604,·SHA:·4c4ea9120c18c216f81553e20681dbbd5e82023351173919f4b997280851338a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.product"·class="fn">product</a>&lt;P&gt;(self)·-&gt;·P<div·class="where">where127 ····S:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/accum/trait.Sum.html"·title="trait·core::iter::traits::accum::Sum">Sum</a>&lt;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedt[·...·truncated·by·diffoscope;·len:·739,·SHA:·408508692ba3c37258d190a20eafb696aebe5aef65aa2b970326dec286fb9403·...·]/core/iter/traits/iterator/trait.Iterator.html#method.product"·class="fn">product</a>&lt;P&gt;(self)·-&gt;·P<div·class="where">where
Max diff block lines reached; 89229/294812 bytes (30.27%) of diff not shown.
308 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Lines.html
    
Offset 1, 219 lines modifiedOffset 1, 219 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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.83.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>
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>.2 <p>This·struct·is·created·with·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·0143d21af5db73ec3e95b4f07b50291bdd99edee8a188dd54ed36f1b37de99c2·...·]/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="https://doc.rust-lang.org/1.83.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:·8ab727beeee43d14ccd108edade3d4ee36807ff72e643f1c06ebb49bafba832e·...·]/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="../../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:·174e3d2c748156c1744c8719346fb55e28cbce9b071f43692a929bd4d2c0e9a6·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/trait.Cl[·...·truncated·by·diffoscope;·len:·8451,·SHA:·106fdc1367b6e87aafc2d4aeb3aa92a182872903429cd8afde88435f12900678·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes16 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,19 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·4c889f015adbdbec7f08f75e7ac2cb11292c55ce77958c7fa3ea99a2bc306a86·...·]/core/primitive.usize.html">usize</a>&gt;(22 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·5145,·SHA:·ad6478d0d31b79384f23f0ec211fe753067ed8125335876e432c1e13939e5e09·...·]/core/primitive.usize.html">usize</a>&gt;(
23 ····&amp;mut·self,23 ····&amp;mut·self,
24 )·-&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">where24 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
26 ····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:·7f08fab3840e63f93f559442f0e17e35484e9059b67893b06d16622df49f52d9·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
28 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>34 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
38 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
47 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
59 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····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,·but61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,64 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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>·over67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
76 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
80 ····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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
81 ····T:·'a,81 ····T:·'a,
82 ····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 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
83 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
84 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.84 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
85 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where85 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,87 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
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.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the95 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
96 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
99 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(102 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,104 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where105 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,107 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the108 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where115 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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·returns117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,120 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where121 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,123 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
124 ····&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·returns124 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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; 85820/315492 bytes (27.20%) of diff not shown.
305 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.LinesAny.html
    
Offset 1, 206 lines modifiedOffset 1, 206 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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.83.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:·a62f11ff16919b32fd27f1344dbb808097f64ed4d17b35fb282f57e0c44af3f7·...·]/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="../../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:·85dc400685f326150e4950b842cd3a1c43437f8d319d473637921aecee92a007·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/trait[·...·truncated·by·diffoscope;·len:·8505,·SHA:·9ca20e03349aecf701c64ba52ec54492bd4a0a3d07658f0be133892af9c048ef·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,3 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,4 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes5 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
9 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·16f787321a532644bceafb821f46d652b33556187d958abb9772b17b6fa0891e·...·]/core/primitive.usize.html">usize</a>&gt;(11 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4282,·SHA:·21041a4ff95a662fe9858bdcb0929c21f763eba88e104cce2018295b70bcee6a·...·]/core/primitive.usize.html">usize</a>&gt;(
12 ····&amp;mut·self,12 ····&amp;mut·self,
13 )·-&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">where13 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
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'>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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
18 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
20 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where22 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>24 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
25 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each27 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
28 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::[·...·truncated·by·diffoscope;·len:·754,·SHA:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element32 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
37 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
49 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····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,·but51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,54 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
55 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::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>·over57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
66 ····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;,66 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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;,69 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
70 ····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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
71 ····T:·'a,71 ····T:·'a,
72 ····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;,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
73 ····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,73 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
74 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.74 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
75 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where75 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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,77 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
82 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
86 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::[·...·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·reducing91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(92 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the98 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where105 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,110 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where111 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
114 ····&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·returns114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where115 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iterator::[·...·truncated·by·diffoscope;·len:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,118 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
121 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
124 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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where124 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,125 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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·the127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
Max diff block lines reached; 86072/312117 bytes (27.58%) of diff not shown.
307 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.MatchIndices.html
    
Offset 1, 215 lines modifiedOffset 1, 215 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·`match_indices`."><title>MatchIndices·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Match<wbr>Indices</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-MatchIndices%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-MatchIndices%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-MatchIndices%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-MatchIndices%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-MatchIndices%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-MatchIndices%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-MatchIndices%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-MatchIndices%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-MatchIndices%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-MatchIndices%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-MatchIndices%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">MatchIndices</span><button·id="copy-path"·title="Copy·item·path·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#1081-1097">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·MatchIndices&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·`match_indices`."><title>MatchIndices·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Match<wbr>Indices</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-MatchIndices%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-MatchIndices%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-MatchIndices%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-MatchIndices%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-MatchIndices%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-MatchIndices%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-MatchIndices%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-MatchIndices%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-MatchIndices%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-MatchIndices%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-MatchIndices%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">MatchIndices</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/str/iter.rs.html#1081-1097">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·MatchIndices&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="../../core/primitive.str.html#method.match_indices"·title="method·str::match_indices"><code>match_indices</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="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.match_indices"·title="method·str::match_indices"><code>match_indices</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-MatchIndices%3C'a,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1081-1097">source</a></span><a·href="#impl-Clone-for-MatchIndices%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.MatchIndices.html"·title="struct·alloc::str::MatchIndices">MatchIndices</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-MatchIndices%3C'a,+P%3E"·class="impl"><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.83.0/src/core/str/iter.rs.html#1081-1097">source</a></span><a·href="#impl-Clone-for-MatchIndices%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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.MatchIndices.html"·title="struct·alloc::str::MatchIndices">MatchIndices</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="../../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:·1531,·SHA:·d8909a28311433f329fee9cfbf2e80692de20029efd4b4db73a44c864762857d·...·]/src/core/str/iter.rs.html#1081-1097">source</a></span><a·href="#impl-Debug-for-MatchIndices%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.MatchIndices.html"·title="struct·alloc::str::MatchIndices">MatchIndices</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="https://doc.rust-lang.org/1.83.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:·1747,·SHA:·dc6ac7bd133ef19f988a96ca6316226a903619e0338619dcee04a0cf6239ebc8·...·]/src/core/str/iter.rs.html#1081-1097">source</a></span><a·href="#impl-Debug-for-MatchIndices%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.MatchIndices.html"·title="struct·alloc::str::MatchIndices">MatchIndices</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="../../src/core/str/iter.rs.html#1081-1097">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:·1002,·SHA:·1a043638e1b9ba4fd08802ff13e8844ef0f765190b46d7ac50a5bbeed6646023·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.MatchIndices.html"·title="struct·alloc::str::MatchIndices">MatchIndices</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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#1081-1097">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:·1137,·SHA:·61bf936ee4d18c8550df03916d03af58186699b0af1f9fe9096d1af6f56a5d69·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.MatchIndices.html"·title="struct·alloc::str::MatchIndices">MatchIndices</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="../../src/core/str/iter.rs.html#1081-1097">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:·3387,·SHA:·48b47f474aedf54dbc2633cbfc2a51cffc8fc14ed648ff977e710ae649f407d3·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#1081-1097">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.htm[·...·truncated·by·diffoscope;·len:·3981,·SHA:·0d6103476186fd824aa16dae3e30cd62c558ced001bd13ab192d24b3f3718378·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes13 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·814,·SHA:·c7bbba287787aea29051753c6ec176ba9036e756f257b9eaabc3154bac0a631e·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.MatchIndices.html"·title="struct·alloc::str::MatchIndices">MatchIndices</a>&lt;'a,·P&gt;<div·class="where">where19 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·976,·SHA:·d622efe29f8a4da54749eb9a31ea524796f616e458f376fe92400a50ef1cb004·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.MatchIndices.html"·title="struct·alloc::str::MatchIndices">MatchIndices</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="../../src/core/str/iter.rs.html#1081-1097">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·cla[·...·truncated·by·diffoscope;·len:·1510,·SHA:·ff9ee6b2fd91ff70aaee5000113c1fd6db0b4dfacab60b03fd67abb571bf82d0·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#1081-1097">source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associat[·...·truncated·by·diffoscope;·len:·1861,·SHA:·86514e3fabb3746714cd4b0a5eac92cbb0b21d8cf7eda098ba21cc5157c90d05·...·]/core/primitive.usize.html">usize</a>&gt;(
21 ····&amp;mut·self,21 ····&amp;mut·self,
22 )·-&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">where22 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·177eaca31c5f515ccb1ee0493d98b81034be40d4400edd5405269b0c9895f142·...·]/core/primitive.usize.html">usize</a><div·class="where">where23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
24 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
27 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
37 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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·element41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
46 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
58 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····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,·but60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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>·over66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,75 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,78 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····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,81 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where82 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·returns85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
86 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where86 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
89 ····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·the89 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
90 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where90 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where93 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
96 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(96 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where99 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
102 ····&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·the102 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
103 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where109 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
112 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(112 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
113 ····&amp;mut·self,113 ····&amp;mut·self,
114 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where115 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
118 ····&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·returns118 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
119 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where119 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,122 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····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·the124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
125 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where125 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
Max diff block lines reached; 92761/314713 bytes (29.47%) of diff not shown.
306 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Matches.html
    
Offset 1, 215 lines modifiedOffset 1, 215 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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>)1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.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>)
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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.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">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="../../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:·da6dae2e01294d63b4772b8c251296cc663c4560d5ad1e69bfc9edcf2d52fd42·...·]/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="https://doc.rust-lang.org/1.83.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:·c3de1e57c69771a1c857454cc776383c3c54b11baf89ac560220647cc12e7c15·...·]/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="../../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:·7d0563fd1942492d03584e991d8a1907f67e5adffc2c5b75798c62235f8bbb8a·...·]/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="https://doc.rust-lang.org/1.83.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:·6de199b54d94b57883b113ef60f8aff6c8c4bb8992594e18e56b417de47afc50·...·]/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="../../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:·6431407fcfc1dba9b3ee791a1a4f0e131b0a874d51622dccc593822765d2127a·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.htm[·...·truncated·by·diffoscope;·len:·3881,·SHA:·217fe54f4e3579a030f43ca8b906f5602d44d064d5c1572c8a7daefd30a56423·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes13 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·ae6df65bd1d6ed8c7871f816b5de61bb668d62c45faa309e631859680701bf43·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·966,·SHA:·1df6f471831b38d48a6280dca478994ebb8d229bd250a85f7c91ac85eb7a691e·...·]/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="../../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:·eca2f0b2a6d5782f1d404d451550b9d8cc0bf8389246b67da04c1bfe64f7eb90·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associat[·...·truncated·by·diffoscope;·len:·1661,·SHA:·ba0ae8d5ea45650163e4151dd6776f59eeef9ebf3396875badc87cc373f60a86·...·]/core/primitive.usize.html">usize</a>&gt;(
21 ····&amp;mut·self,21 ····&amp;mut·self,
22 )·-&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">where22 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·177eaca31c5f515ccb1ee0493d98b81034be40d4400edd5405269b0c9895f142·...·]/core/primitive.usize.html">usize</a><div·class="where">where23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
24 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
27 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
37 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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·element41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
46 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
58 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····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,·but60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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>·over66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,75 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,78 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····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,81 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where82 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·returns85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
86 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where86 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
89 ····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·the89 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
90 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where90 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where93 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
96 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(96 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where99 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
102 ····&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·the102 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
103 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where109 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
112 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(112 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
113 ····&amp;mut·self,113 ····&amp;mut·self,
114 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where115 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
118 ····&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·returns118 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
119 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where119 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,122 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····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·the124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
125 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where125 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
Max diff block lines reached; 92160/313145 bytes (29.43%) of diff not shown.
74.7 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.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>
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:·cf73f0f7d4c9c8c18c68ce4fe77c94e955ce80c95dc1a3d725f50c65f6bb4b36·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/trait.Clone.html"[·...·truncated·by·diffoscope;·len:·11805,·SHA:·7566ac4384bff873f18fc5ffde4c3ba6e3d43a57dce0f7f9f839f6b0ef204096·...·]/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="../../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:·298d735b3098f9bdd5bd780df099f106d351ff34e027541e40c5e8fb0aaab317·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/cmp/trait.Eq.html"·title="[·...·truncated·by·diffoscope;·len:·4104,·SHA:·be25b1b09f480cea59f0de84690d1eada5636215af38db5f94003e5ad3a5376a·...·]/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·[·...·truncated·by·diffoscope;·len:·672,·SHA:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·177b78315f049c4065999398ed2f89f85b6487d450f04912cef3a3be057e45e9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where6 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·604f234273b763a6bed19dbd345c594cd2aa8776b239765ce764b1e7c24bf9c9·...·]/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[·...·truncated·by·diffoscope;·len:·1551,·SHA:·a703c408c4e022a9f5f607159372ac6d607aaf923b3e1387c117f9b36f5022ac·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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=[·...·truncated·by·diffoscope;·len:·156,·SHA:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../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:·c2c8c9a4a4178ce9f649b57ef777997f02105c416fe8b6a7efafe289a2c82f94·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·3bbde9fc45defa1dca05b2d321fdaad6904f701633b311a788797b29fc3d0d8c·...·]/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#2672-2686">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="../../core/marker/trait.Sized.html"·title="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:·b3522f6656a75b8786d727c522d67358e29dfa2964a2f89c2aa386e5cf9583ce·...·]/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="https://doc.rust-lang.org/1.83.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:·4e66fd818d0db79470c3c05df8933adf2420d3b968fd4ca310e2824aa93e7fa4·...·]/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·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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>
310 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.RMatchIndices.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="Created·with·the·method·`rmatch_indices`."><title>RMatchIndices·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RMatch<wbr>Indices</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-RMatchIndices%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RMatchIndices%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RMatchIndices%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RMatchIndices%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RMatchIndices%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-RMatchIndices%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RMatchIndices%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RMatchIndices%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RMatchIndices%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RMatchIndices%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RMatchIndices%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">RMatchIndices</span><button·id="copy-path"·title="Copy·item·path·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#1081-1097">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RMatchIndices&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·`rmatch_indices`."><title>RMatchIndices·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (built»      from»  a» source»   tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RMatch<wbr>Indices</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-RMatchIndices%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RMatchIndices%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RMatchIndices%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RMatchIndices%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RMatchIndices%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-RMatchIndices%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RMatchIndices%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RMatchIndices%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RMatchIndices%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RMatchIndices%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RMatchIndices%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">RMatchIndices</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/str/iter.rs.html#1081-1097">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RMatchIndices&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="../../core/primitive.str.html#method.rmatch_indices"·title="method·str::rmatch_indices"><code>rmatch_indices</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="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.rmatch_indices"·title="method·str::rmatch_indices"><code>rmatch_indices</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-RMatchIndices%3C'a,+P%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1081-1097">source</a></span><a·href="#impl-Clone-for-RMatchIndices%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.RMatchIndices.html"·title="struct·alloc::str::RMatchIndices">RMatchIndices</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-RMatchIndices%3C'a,+P%3E"·class="impl"><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.83.0/src/core/str/iter.rs.html#1081-1097">source</a></span><a·href="#impl-Clone-for-RMatchIndices%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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.RMatchIndices.html"·title="struct·alloc::str::RMatchIndices">RMatchIndices</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="../../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:·1536,·SHA:·09a5d76576a51862078979508d75716687ae3add1294a2a531072a09fdeec618·...·]/src/core/str/iter.rs.html#1081-1097">source</a></span><a·href="#impl-Debug-for-RMatchIndices%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.RMatchIndices.html"·title="struct·alloc::str::RMatchIndices">RMatchIndices</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="https://doc.rust-lang.org/1.83.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:·1752,·SHA:·ba3fdcca84090e5859f8b596e904a05551f52e62e08ba248a021c62ad291172f·...·]/src/core/str/iter.rs.html#1081-1097">source</a></span><a·href="#impl-Debug-for-RMatchIndices%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.RMatchIndices.html"·title="struct·alloc::str::RMatchIndices">RMatchIndices</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="../../src/core/str/iter.rs.html#1081-1097">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:·1004,·SHA:·b06720e1cd1de9573d886a83571cc50b649901a8c3d7f95e499436be195b94b3·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RMatchIndices.html"·title="struct·alloc::str::RMatchIndices">RMatchIndices</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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#1081-1097">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:·1139,·SHA:·08f5a9643fc0b0d48c01fd3124f6c4433df43a105981c4231facc0c730ce36ea·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RMatchIndices.html"·title="struct·alloc::str::RMatchIndices">RMatchIndices</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="../../src/core/str/iter.rs.html#1081-1097">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:·3387,·SHA:·48b47f474aedf54dbc2633cbfc2a51cffc8fc14ed648ff977e710ae649f407d3·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#1081-1097">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.htm[·...·truncated·by·diffoscope;·len:·3981,·SHA:·0d6103476186fd824aa16dae3e30cd62c558ced001bd13ab192d24b3f3718378·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes13 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·816,·SHA:·10756c8f93fd972a62b095457509df010538b450af5160380d870a514f914580·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RMatchIndices.html"·title="struct·alloc::str::RMatchIndices">RMatchIndices</a>&lt;'a,·P&gt;<div·class="where">where19 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·978,·SHA:·b8159c51f5f932e72d70913d2dec852c9236656f7bee505837a73266edd2667e·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RMatchIndices.html"·title="struct·alloc::str::RMatchIndices">RMatchIndices</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="../../src/core/str/iter.rs.html#1081-1097">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·cla[·...·truncated·by·diffoscope;·len:·1510,·SHA:·ff9ee6b2fd91ff70aaee5000113c1fd6db0b4dfacab60b03fd67abb571bf82d0·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#1081-1097">source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associat[·...·truncated·by·diffoscope;·len:·1861,·SHA:·86514e3fabb3746714cd4b0a5eac92cbb0b21d8cf7eda098ba21cc5157c90d05·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self,22 ····&amp;mut·self,
23 )·-&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">where23 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·177eaca31c5f515ccb1ee0493d98b81034be40d4400edd5405269b0c9895f142·...·]/core/primitive.usize.html">usize</a><div·class="where">where24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
25 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
28 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>34 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
38 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
47 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
59 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····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,·but61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,64 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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>·over67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
76 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
80 ····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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,82 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
87 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the90 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
91 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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,93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
94 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(97 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,99 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the103 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where110 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,115 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where116 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,118 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
119 ····&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·returns119 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where120 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,123 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····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·the125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
126 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/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="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 94470/317245 bytes (29.78%) of diff not shown.
308 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.RMatches.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="Created·with·the·method·`rmatches`."><title>RMatches·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RMatches</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-RMatches%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RMatches%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RMatches%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RMatches%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RMatches%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-RMatches%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RMatches%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RMatches%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RMatches%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RMatches%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RMatches%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">RMatches</span><button·id="copy-path"·title="Copy·item·path·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·RMatches&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·`rmatches`."><title>RMatches·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RMatches</a></h2><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-RMatches%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RMatches%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RMatches%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RMatches%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RMatches%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-RMatches%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RMatches%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RMatches%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RMatches%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RMatches%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RMatches%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">RMatches</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/str/iter.rs.html#1138-1154">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RMatches&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="../../core/primitive.str.html#method.rmatches"·title="method·str::rmatches"><code>rmatches</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="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.rmatches"·title="method·str::rmatches"><code>rmatches</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-RMatches%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-RMatches%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.RMatches.html"·title="struct·alloc::str::RMatches">RMatches</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-RMatches%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.83.0/src/core/str/iter.rs.html#1138-1154">source</a></span><a·href="#impl-Clone-for-RMatches%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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.RMatches.html"·title="struct·alloc::str::RMatches">RMatches</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="../../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:·1511,·SHA:·fb00e3c2c55685c11a068b0afb7a49e6ede005eaf849d356c64c10825759b421·...·]/src/core/str/iter.rs.html#1138-1154">source</a></span><a·href="#impl-Debug-for-RMatches%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.RMatches.html"·title="struct·alloc::str::RMatches">RMatches</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="https://doc.rust-lang.org/1.83.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:·1727,·SHA:·4f3dea94d88f92fac4421283f1fc8693912b7c4ddc277ed3119a5e96cca765b0·...·]/src/core/str/iter.rs.html#1138-1154">source</a></span><a·href="#impl-Debug-for-RMatches%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.RMatches.html"·title="struct·alloc::str::RMatches">RMatches</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="../../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:·994,·SHA:·61b153e948a9384f9acd5373b7ab595bdaddab1db017bb09b284d115c2738dd4·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RMatches.html"·title="struct·alloc::str::RMatches">RMatches</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="https://doc.rust-lang.org/1.83.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:·1129,·SHA:·b6c5ce6551cc4e09227961fc382c3719464ce1425eb3fe657653aea56fa39056·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RMatches.html"·title="struct·alloc::str::RMatches">RMatches</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="../../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:·6431407fcfc1dba9b3ee791a1a4f0e131b0a874d51622dccc593822765d2127a·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.htm[·...·truncated·by·diffoscope;·len:·3881,·SHA:·217fe54f4e3579a030f43ca8b906f5602d44d064d5c1572c8a7daefd30a56423·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes13 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
19 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·d527d497c76c326f2b9ed144ee0443573ee94570ad57756055a2e2ee9d75af02·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RMatches.html"·title="struct·alloc::str::RMatches">RMatches</a>&lt;'a,·P&gt;<div·class="where">where19 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·968,·SHA:·b665dffcaab25986ca7e96acba9c3b28d9bc81aff2a30033ed7feda204ba7d53·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RMatches.html"·title="struct·alloc::str::RMatches">RMatches</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="../../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:·eca2f0b2a6d5782f1d404d451550b9d8cc0bf8389246b67da04c1bfe64f7eb90·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associat[·...·truncated·by·diffoscope;·len:·1661,·SHA:·ba0ae8d5ea45650163e4151dd6776f59eeef9ebf3396875badc87cc373f60a86·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self,22 ····&amp;mut·self,
23 )·-&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">where23 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·177eaca31c5f515ccb1ee0493d98b81034be40d4400edd5405269b0c9895f142·...·]/core/primitive.usize.html">usize</a><div·class="where">where24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
25 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
28 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>34 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
38 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
47 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
59 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····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,·but61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,64 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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>·over67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
76 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
80 ····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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,82 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
87 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the90 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
91 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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,93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
94 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(97 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,99 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the103 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where110 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,115 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where116 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,118 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
119 ····&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·returns119 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where120 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,123 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····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·the125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
126 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/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="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 93869/315677 bytes (29.74%) of diff not shown.
313 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.RSplit.html
    
Offset 1, 228 lines modifiedOffset 1, 228 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·`rsplit`."><title>RSplit·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplit</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-RSplit%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RSplit%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplit%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplit%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplit%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-RSplit%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplit%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplit%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplit%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplit%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplit%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">RSplit</span><button·id="copy-path"·title="Copy·item·path·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#789-805">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplit&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·`rsplit`."><title>RSplit·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (built»     from» a»source»  tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplit</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-RSplit%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RSplit%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplit%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplit%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplit%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-RSplit%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplit%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplit%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplit%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplit%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplit%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">RSplit</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/str/iter.rs.html#789-805">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplit&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="../../core/primitive.str.html#method.rsplit"·title="method·str::rsplit"><code>rsplit</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="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.rsplit"·title="method·str::rsplit"><code>rsplit</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-RSplit%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#830">source</a><a·href="#impl-RSplit%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::str::RSplit">RSplit</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-RSplit%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#830">source</a><a·href="#impl-RSplit%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::str::RSplit">RSplit</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="../../src/core/str/iter.rs.html#848">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;&a[·...·truncated·by·diffoscope;·len:·38,·SHA:·c8741f624921bfb95a775681d2d2bfde8ce5c58ee27fc726a7362ed3e72105df·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#848">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.83.0/core/option/enum.Option.ht[·...·truncated·by·diffoscope;·len:·119,·SHA:·aa4567162171b306c19f9ae8daea24b74c267260802e9deba5206d4ead95cc5b·...·]/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>.rsplit(<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>.rsplit(<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.rsplit('+');%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.rsplit('+');%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-RSplit%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#789-805">source</a></span><a·href="#impl-Clone-for-RSplit%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.RSplit.html"·title="struct·alloc::str::RSplit">RSplit</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-RSplit%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.83.0/src/core/str/iter.rs.html#789-805">source</a></span><a·href="#impl-Clone-for-RSplit%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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::str::RSplit">RSplit</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="../../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:·46a01e685e8c28ab53f44cf2aed56565ec26abdf1d91437f545d6623f587b525·...·]/src/core/str/iter.rs.html#789-805">source</a></span><a·href="#impl-Debug-for-RSplit%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.RSplit.html"·title="struct·alloc::str::RSplit">RSplit</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="https://doc.rust-lang.org/1.83.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:·be3d36d91f653110ae6e27009fe645dc7870d1b3381f97008108d6820adc3416·...·]/src/core/str/iter.rs.html#789-805">source</a></span><a·href="#impl-Debug-for-RSplit%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.RSplit.html"·title="struct·alloc::str::RSplit">RSplit</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="../../src/core/str/iter.rs.html#789-805">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:·986,·SHA:·2599cf1c20143ae8fe622dbccc09c1ec87ca3765a681aebbac18b575a12626e3·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::str::RSplit">RSplit</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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#789-805">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:·1121,·SHA:·a7ad49fe5e9d9a81738b406557e8942a25ad1177c7ab49ee8c6812b0ec804dc2·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::str::RSplit">RSplit</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.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#789-805">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;mut·[·...·truncated·by·diffoscope;·len:·3312,·SHA:·dc220da3cc7e918c5a854aa2410d028bbb3244d0cc0863d1b8b115cecfb3d5bc·...·]/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">where21 ····&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.83.0/src/core/str/iter.rs.html#789-805">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#[·...·truncated·by·diffoscope;·len:·3879,·SHA:·d465278d55bccb16100b5db199f6d9cccb325cd23839f9edf9b662df6180eca7·...·]/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
22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····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,23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
24 ····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·takes24 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
25 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where25 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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,27 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
28 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where28 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·800,·SHA:·2135bf8462973186bfe1adedab17793d772ec5286f60edf067c146a80ebdbefb·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::str::RSplit">RSplit</a>&lt;'a,·P&gt;<div·class="where">where30 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·962,·SHA:·f9e9b7c3d2966a71bbd0620b7e9c8777bda12738ed60493f3198e45533a86c13·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplit.html"·title="struct·alloc::str::RSplit">RSplit</a>&lt;'a,·P&gt;<div·class="where">where
31 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,31 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
32 ····&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#789-805">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:·388d759dbb9d5064cdcf5c55fad7a77124130639b3c557e639278b3f823240f9·...·]/core/primitive.usize.html">usize</a>&gt;(32 ····&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.83.0/src/core/str/iter.rs.html#789-805">source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associated[·...·truncated·by·diffoscope;·len:·1657,·SHA:·9aedf0cbc82933e787e844e36c1dfbe96f772beb7dea7e41baa21f14301c098b·...·]/core/primitive.usize.html">usize</a>&gt;(
33 ····&amp;mut·self,33 ····&amp;mut·self,
34 )·-&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">where34 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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
35 ····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:·177eaca31c5f515ccb1ee0493d98b81034be40d4400edd5405269b0c9895f142·...·]/core/primitive.usize.html">usize</a><div·class="where">where35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
36 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
37 ····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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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
38 ····Self:·<a·class="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·by38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
39 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where39 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where41 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where43 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>45 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
46 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
49 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
58 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::[·...·truncated·by·diffoscope;·len:·947,·SHA:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
70 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····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,·but72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,75 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
76 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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>·over78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
79 <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>,79 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
80 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where80 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
85 ····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;,85 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,87 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,90 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
98 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
102 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(108 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
127 )·-&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">where127 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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; 93697/320249 bytes (29.26%) of diff not shown.
294 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.RSplitN.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="Created·with·the·method·`rsplitn`."><title>RSplitN·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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>)1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.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>)
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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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>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.83.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.83.0/core/option/enum.Option.h[·...·truncated·by·diffoscope;·len:·120,·SHA:·4b616ef8e6e0b7f059a757829e4453e16033f46243768a39c5dce97286b8ed31·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.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">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="../../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:·699aab67830410b06e13a20b8565295d426671bc9ac959afe676073c1f6eb36f·...·]/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="https://doc.rust-lang.org/1.83.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:·7bea5463d4f260a3a3a9d9d675d7f53a2c25de1483c17583eb62741744b71e7d·...·]/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="../../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:·256c69b09dc6620cce2342ac739862f76797e0f0694e381e6a463934d43da81c·...·]/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="https://doc.rust-lang.org/1.83.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:·2026298275c2c297275c7a82b0811b2b796f072670efc49ce19065ecf14d16a0·...·]/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="../../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:·5bfe19fedfc5134c359c3cc9816d5d3845ccad9a418a0ea7d499bd9346fa7f8a·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associated[·...·truncated·by·diffoscope;·len:·1657,·SHA:·8ee49a2e355ebf0a643f4308a5b2ac7081f367b522dfd3c276aeaa8b7a92dfb7·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self,22 ····&amp;mut·self,
23 )·-&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">where23 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·177eaca31c5f515ccb1ee0493d98b81034be40d4400edd5405269b0c9895f142·...·]/core/primitive.usize.html">usize</a><div·class="where">where24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
25 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
28 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>34 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
38 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
47 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
59 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····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,·but61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,64 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
65 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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>·over67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
76 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
80 ····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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,82 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
87 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the90 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
91 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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,93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
94 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(97 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,99 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the103 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
110 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where110 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,115 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where116 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,118 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
119 ····&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·returns119 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where120 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,123 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····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·the125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
126 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/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="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 93781/300916 bytes (31.17%) of diff not shown.
315 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.RSplitTerminator.html
    
Offset 1, 228 lines modifiedOffset 1, 228 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·`rsplit_terminator`."><title>RSplitTerminator·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplit<wbr>Terminator</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-RSplitTerminator%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RSplitTerminator%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplitTerminator%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplitTerminator%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitTerminator%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-RSplitTerminator%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitTerminator%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitTerminator%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplitTerminator%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitTerminator%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplitTerminator%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">RSplitTerminator</span><button·id="copy-path"·title="Copy·item·path·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#853-869">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitTerminator&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·`rsplit_terminator`."><title>RSplitTerminator·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (built»from»    a»   source»     tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">RSplit<wbr>Terminator</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-RSplitTerminator%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-RSplitTerminator%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplitTerminator%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplitTerminator%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitTerminator%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-RSplitTerminator%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitTerminator%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitTerminator%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-RSplitTerminator%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitTerminator%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplitTerminator%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">RSplitTerminator</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/str/iter.rs.html#853-869">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitTerminator&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="../../core/primitive.str.html#method.rsplit_terminator"·title="method·str::rsplit_terminator"><code>rsplit_terminator</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="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.rsplit_terminator"·title="method·str::rsplit_terminator"><code>rsplit_terminator</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-RSplitTerminator%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#894">source</a><a·href="#impl-RSplitTerminator%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.RSplitTerminator.html"·title="struct·alloc::str::RSplitTerminator">RSplitTerminator</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-RSplitTerminator%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#894">source</a><a·href="#impl-RSplitTerminator%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.RSplitTerminator.html"·title="struct·alloc::str::RSplitTerminator">RSplitTerminator</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="../../src/core/str/iter.rs.html#912">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;&a[·...·truncated·by·diffoscope;·len:·38,·SHA:·c8741f624921bfb95a775681d2d2bfde8ce5c58ee27fc726a7362ed3e72105df·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#912">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.83.0/core/option/enum.Option.ht[·...·truncated·by·diffoscope;·len:·119,·SHA:·aa4567162171b306c19f9ae8daea24b74c267260802e9deba5206d4ead95cc5b·...·]/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">"A..B.."</span>.rsplit_terminator(<span·class="string">'.'</span>);9 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"A..B.."</span>.rsplit_terminator(<span·class="string">'.'</span>);
10 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"A..B.."</span>));10 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"A..B.."</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">"A..B"</span>));12 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"A..B"</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+=+%22A..B..%22.rsplit_terminator('.');%0A++++assert_eq!(split.remainder(),+Some(%22A..B..%22));%0A++++split.next();%0A++++assert_eq!(split.remainder(),+Some(%22A..B%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+=+%22A..B..%22.rsplit_terminator('.');%0A++++assert_eq!(split.remainder(),+Some(%22A..B..%22));%0A++++split.next();%0A++++assert_eq!(split.remainder(),+Some(%22A..B%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-RSplitTerminator%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#853-869">source</a></span><a·href="#impl-Clone-for-RSplitTerminator%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.RSplitTerminator.html"·title="struct·alloc::str::RSplitTerminator">RSplitTerminator</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-RSplitTerminator%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.83.0/src/core/str/iter.rs.html#853-869">source</a></span><a·href="#impl-Clone-for-RSplitTerminator%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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.RSplitTerminator.html"·title="struct·alloc::str::RSplitTerminator">RSplitTerminator</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="../../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:·1549,·SHA:·8812cb168525c7476ce8292dcaec43279030dfe5b6f6a5fec30fbe4a37394dad·...·]/src/core/str/iter.rs.html#853-869">source</a></span><a·href="#impl-Debug-for-RSplitTerminator%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.RSplitTerminator.html"·title="struct·alloc::str::RSplitTerminator">RSplitTerminator</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="https://doc.rust-lang.org/1.83.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:·1765,·SHA:·a634bbf08f7190fb753ed9a3b7652f37d70dfce808a86b72247dfd792f9e46a4·...·]/src/core/str/iter.rs.html#853-869">source</a></span><a·href="#impl-Debug-for-RSplitTerminator%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.RSplitTerminator.html"·title="struct·alloc::str::RSplitTerminator">RSplitTerminator</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="../../src/core/str/iter.rs.html#853-869">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:·1006,·SHA:·aa8ab78a8438539f2282d5f8dbf12a1db22471fa8086fadee20c8dd73941b463·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RSplitTerminator.html"·title="struct·alloc::str::RSplitTerminator">RSplitTerminator</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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#853-869">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:·1141,·SHA:·f1678865e9f3f79d4164885d52220724202220929ab96aba9f46b1fa5d9c79d4·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.RSplitTerminator.html"·title="struct·alloc::str::RSplitTerminator">RSplitTerminator</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.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#853-869">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;mut·[·...·truncated·by·diffoscope;·len:·3312,·SHA:·dc220da3cc7e918c5a854aa2410d028bbb3244d0cc0863d1b8b115cecfb3d5bc·...·]/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">where21 ····&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.83.0/src/core/str/iter.rs.html#853-869">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#[·...·truncated·by·diffoscope;·len:·3879,·SHA:·d465278d55bccb16100b5db199f6d9cccb325cd23839f9edf9b662df6180eca7·...·]/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
22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····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,23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
24 ····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·takes24 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
25 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where25 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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,27 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
28 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where28 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·820,·SHA:·b3d9e50040fd29b7ef589c70c716aba782d0d1b756778d81af04e8e8794da35d·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplitTerminator.html"·title="struct·alloc::str::RSplitTerminator">RSplitTerminator</a>&lt;'a,·P&gt;<div·class="where">where30 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·982,·SHA:·651a7418d2b30d90cb1778ec4579982168728609482359522c0e13b94308fa84·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.RSplitTerminator.html"·title="struct·alloc::str::RSplitTerminator">RSplitTerminator</a>&lt;'a,·P&gt;<div·class="where">where
31 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,31 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
32 ····&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#853-869">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:·26ccbaf53295bef9827290499e9ece994fd0374dce2791ac5c77007ec49a7167·...·]/core/primitive.usize.html">usize</a>&gt;(32 ····&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.83.0/src/core/str/iter.rs.html#853-869">source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associated[·...·truncated·by·diffoscope;·len:·1657,·SHA:·6a79d0aafdfb88d5e6b0cc5383363aa9743156ab0ea3b7fb81b589588cce6bf3·...·]/core/primitive.usize.html">usize</a>&gt;(
33 ····&amp;mut·self,33 ····&amp;mut·self,
34 )·-&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">where34 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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
35 ····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:·177eaca31c5f515ccb1ee0493d98b81034be40d4400edd5405269b0c9895f142·...·]/core/primitive.usize.html">usize</a><div·class="where">where35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
36 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
37 ····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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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
38 ····Self:·<a·class="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·by38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
39 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where39 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where41 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where43 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>45 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
46 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
49 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element53 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
58 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::[·...·truncated·by·diffoscope;·len:·947,·SHA:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
70 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····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,·but72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
75 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,75 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
76 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
77 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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>·over78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
79 <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>,79 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
80 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where80 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
85 ····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;,85 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,87 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
89 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,90 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
98 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
102 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(108 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,112 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,113 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the114 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
116 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
127 )·-&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">where127 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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; 94537/321999 bytes (29.36%) of diff not shown.
310 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.Split.html
    
Offset 1, 226 lines modifiedOffset 1, 226 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·`split`."><title>Split·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split</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-Split%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Split%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Split%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Split%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Split%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-Split%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Split%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Split%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Split%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Split%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Split%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">Split</span><button·id="copy-path"·title="Copy·item·path·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#789-805">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Split&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·`split`."><title>Split·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (built»       from»   a»  source»    tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split</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-Split%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-Split%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Split%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Split%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Split%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-Split%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Split%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Split%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Split%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-Split%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Split%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">Split</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/str/iter.rs.html#789-805">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Split&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="../../core/primitive.str.html#method.split"·title="method·str::split"><code>split</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="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.split"·title="method·str::split"><code>split</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-Split%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#807">source</a><a·href="#impl-Split%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::str::Split">Split</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-Split%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#807">source</a><a·href="#impl-Split%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::str::Split">Split</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="../../src/core/str/iter.rs.html#825">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;&a[·...·truncated·by·diffoscope;·len:·38,·SHA:·c8741f624921bfb95a775681d2d2bfde8ce5c58ee27fc726a7362ed3e72105df·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#825">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.83.0/core/option/enum.Option.ht[·...·truncated·by·diffoscope;·len:·119,·SHA:·aa4567162171b306c19f9ae8daea24b74c267260802e9deba5206d4ead95cc5b·...·]/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>.split(<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>.split(<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.split('+');%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.split('+');%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-Split%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#789-805">source</a></span><a·href="#impl-Clone-for-Split%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.Split.html"·title="struct·alloc::str::Split">Split</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-Split%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.83.0/src/core/str/iter.rs.html#789-805">source</a></span><a·href="#impl-Clone-for-Split%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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::str::Split">Split</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="../../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:·1494,·SHA:·c189dba7edfcb70c4c716852f55c22eb18089e0ca85911ce44df47cce19a2509·...·]/src/core/str/iter.rs.html#789-805">source</a></span><a·href="#impl-Debug-for-Split%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.Split.html"·title="struct·alloc::str::Split">Split</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="https://doc.rust-lang.org/1.83.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:·1710,·SHA:·36dfcbbbc16337c3a781702032b3785a8a343c555f9c614dd6de0ea59a03f832·...·]/src/core/str/iter.rs.html#789-805">source</a></span><a·href="#impl-Debug-for-Split%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.Split.html"·title="struct·alloc::str::Split">Split</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="../../src/core/str/iter.rs.html#789-805">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:·984,·SHA:·c9430dd88f8bcaa87e6b60f72fb9e74496e4e2d4f921d7b5f2a7dbc29fccee8e·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::str::Split">Split</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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#789-805">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:·1119,·SHA:·f8a78f09e5ee45b6c5df83b3ad95bf8f1a3b96b51a09e0869a3c5d5b6b31696d·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::str::Split">Split</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.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#789-805">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;mut·[·...·truncated·by·diffoscope;·len:·3312,·SHA:·dc220da3cc7e918c5a854aa2410d028bbb3244d0cc0863d1b8b115cecfb3d5bc·...·]/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">where21 ····&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.83.0/src/core/str/iter.rs.html#789-805">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#[·...·truncated·by·diffoscope;·len:·3879,·SHA:·d465278d55bccb16100b5db199f6d9cccb325cd23839f9edf9b662df6180eca7·...·]/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
22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····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,23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
24 ····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·takes24 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
25 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where25 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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,27 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
28 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where28 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·798,·SHA:·3ae948ccc20a952664c29a99b7e8647b3f3a364070d5b6d568c5ca99eb381a52·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::str::Split">Split</a>&lt;'a,·P&gt;<div·class="where">where30 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·960,·SHA:·af5c36e86ce0484a3a8c90035d5b3dc3737a872a2ef6e308e625ad4035510f4d·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.Split.html"·title="struct·alloc::str::Split">Split</a>&lt;'a,·P&gt;<div·class="where">where
31 ····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#789-805">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:·388d759dbb9d5064cdcf5c55fad7a77124130639b3c557e639278b3f823240f9·...·]/core/primitive.usize.html">usize</a>&gt;(31 ····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.83.0/src/core/str/iter.rs.html#789-805">source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associated[·...·truncated·by·diffoscope;·len:·1657,·SHA:·9aedf0cbc82933e787e844e36c1dfbe96f772beb7dea7e41baa21f14301c098b·...·]/core/primitive.usize.html">usize</a>&gt;(
32 ····&amp;mut·self,32 ····&amp;mut·self,
33 )·-&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">where33 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·177eaca31c5f515ccb1ee0493d98b81034be40d4400edd5405269b0c9895f142·...·]/core/primitive.usize.html">usize</a><div·class="where">where34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
35 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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
37 ····Self:·<a·class="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·by37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
38 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where38 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where40 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where42 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····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>44 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where45 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
48 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where48 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::[·...·truncated·by·diffoscope;·len:·754,·SHA:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element52 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
53 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where53 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="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·as56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
57 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where57 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<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'>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>·methods58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
59 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See59 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
60 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where60 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where62 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where64 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where66 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
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'>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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
68 ····Self:·<a·class="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·fewer68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
69 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where69 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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,·but71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
72 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where72 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,74 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
75 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····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>·over77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
78 <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 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
79 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where79 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
83 ····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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
84 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,86 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,89 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
97 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
101 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(107 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,112 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the113 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where126 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 91988/317705 bytes (28.95%) of diff not shown.
311 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.SplitAsciiWhitespace.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="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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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,1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.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,
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="../../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>.3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·88f3c2d3d492b604a2b403aa34a3a0317f38ddcb4920b82cfca2f052469be174·...·]/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="https://doc.rust-lang.org/1.83.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:·48e13790f72eba207222d40ad3ee0a2e602d8791278ec1c1ef6803a2d4c5cc05·...·]/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="../../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:·0cdd336e38d4de81608f363a079d4f7029bd03283c7f273934e4e60c95d00beb·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core[·...·truncated·by·diffoscope;·len:·8725,·SHA:·c7cafbf069b1d0e44e296dd498ca5a8bb870ae7bb045e82ae0c0d09e064e776a·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes18 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
22 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·8393e4b0af9ce2326585bd29dec8db1d0c960a8c7ef0eae7604b0daf8ab6ed2d·...·]/core/primitive.usize.html">usize</a>&gt;(24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·5222,·SHA:·73fc1ae4759130e00ab988ffa65f99cd2d8419cc4b44561601dc03f66c2fed6f·...·]/core/primitive.usize.html">usize</a>&gt;(
25 ····&amp;mut·self,25 ····&amp;mut·self,
26 )·-&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">where26 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
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'>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:·7f08fab3840e63f93f559442f0e17e35484e9059b67893b06d16622df49f52d9·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
30 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
32 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where34 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>36 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
40 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
49 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
61 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····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,·but63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,66 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
67 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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>·over69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,78 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,81 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
83 ····T:·'a,83 ····T:·'a,
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;,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,85 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where87 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,89 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
94 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the97 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
98 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(104 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,106 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where107 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,109 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the110 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where117 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where123 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 87080/318545 bytes (27.34%) of diff not shown.
312 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.SplitInclusive.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·substrings·of·a·string,·terminated·by·a·substring·matching·to·a·predicate·function·Unlike·`Split`,·it·contains·the·matched·part·as·a·terminator·of·the·subslice."><title>SplitInclusive·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Inclusive</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-SplitInclusive%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SplitInclusive%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitInclusive%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitInclusive%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitInclusive%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-SplitInclusive%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitInclusive%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitInclusive%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitInclusive%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitInclusive%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitInclusive%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">SplitInclusive</span><button·id="copy-path"·title="Copy·item·path·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/str/iter.rs.html#1299">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitInclusive&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="An·iterator·over·the·substrings·of·a·string,·terminated·by·a·substring·matching·to·a·predicate·function·Unlike·`Split`,·it·contains·the·matched·part·as·a·terminator·of·the·subslice."><title>SplitInclusive·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Inclusive</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-SplitInclusive%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SplitInclusive%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitInclusive%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitInclusive%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitInclusive%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-SplitInclusive%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitInclusive%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitInclusive%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitInclusive%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitInclusive%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitInclusive%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">SplitInclusive</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/str/iter.rs.html#1299">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitInclusive&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>An·iterator·over·the·substrings·of·a·string,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>An·iterator·over·the·substrings·of·a·string,
4 terminated·by·a·substring·matching·to·a·predicate·function4 terminated·by·a·substring·matching·to·a·predicate·function
5 Unlike·<code>Split</code>,·it·contains·the·matched·part·as·a·terminator5 Unlike·<code>Split</code>,·it·contains·the·matched·part·as·a·terminator
6 of·the·subslice.</p>6 of·the·subslice.</p>
7 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.split_inclusive"·title="method·str::split_inclusive"><code>split_inclusive</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.split_inclusive"·title="method·str::split_inclusive"><code>split_inclusive</code></a>·method·on·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.
8 See·its·documentation·for·more.</p>8 See·its·documentation·for·more.</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-SplitInclusive%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1458">source</a><a·href="#impl-SplitInclusive%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">SplitInclusive</a>&lt;'a,·P&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-SplitInclusive%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#1458">source</a><a·href="#impl-SplitInclusive%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">SplitInclusive</a>&lt;'a,·P&gt;<div·class="where">where
10 ····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#1476">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_inclusive_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>10 ····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.83.0/src/core/str/iter.rs.html#1476">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.83.0/core/option/enum.Option.h[·...·truncated·by·diffoscope;·len:·120,·SHA:·4b616ef8e6e0b7f059a757829e4453e16033f46243768a39c5dce97286b8ed31·...·]/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_inclusive_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>
11 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>11 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</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="attr">#![feature(str_split_inclusive_remainder)]13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_inclusive_remainder)]
14 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"Mary·had·a·little·lamb"</span>.split_inclusive(<span·class="string">'·'</span>);14 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"Mary·had·a·little·lamb"</span>.split_inclusive(<span·class="string">'·'</span>);
15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));
16 split.next();16 split.next();
17 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));17 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));
18 split.by_ref().for_each(drop);18 split.by_ref().for_each(drop);
19 <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_inclusive_remainder)%5D%0Afn+main()+%7B%0A++++let+mut+split+=+%22Mary+had+a+little+lamb%22.split_inclusive('+');%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>19 <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_inclusive_remainder)%5D%0Afn+main()+%7B%0A++++let+mut+split+=+%22Mary+had+a+little+lamb%22.split_inclusive('+');%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>
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-SplitInclusive%3C'a,+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/str/iter.rs.html#1439">source</a></span><a·href="#impl-Clone-for-SplitInclusive%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.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">SplitInclusive</a>&lt;'a,·P&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-SplitInclusive%3C'a,+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.83.0/src/core/str/iter.rs.html#1439">source</a></span><a·href="#impl-Clone-for-SplitInclusive%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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">SplitInclusive</a>&lt;'a,·P&gt;<div·class="where">where
21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
22 ····&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:·1538,·SHA:·8e36e20cb84ae8c466ee4b21f63f9f0ac8ed35eac09f7f46b2a496580c0b888a·...·]/src/core/str/iter.rs.html#1431">source</a></span><a·href="#impl-Debug-for-SplitInclusive%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.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">SplitInclusive</a>&lt;'a,·P&gt;<div·class="where">where22 ····&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.83.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:·1754,·SHA:·4d94cd02a9741058280d9ade67f1bfae8ad3adbae88e3e93a8f9a8525b72d813·...·]/src/core/str/iter.rs.html#1431">source</a></span><a·href="#impl-Debug-for-SplitInclusive%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.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">SplitInclusive</a>&lt;'a,·P&gt;<div·class="where">where
23 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,23 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
24 ····&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#1432">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.ht[·...·truncated·by·diffoscope;·len:·1003,·SHA:·e2cf03256ef890f3d182dbd50fd9aa079672c28e95a726d4f2a8f06fb49783ca·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">SplitInclusive</a>&lt;'a,·P&gt;<div·class="where">where24 ····&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.83.0/src/core/str/iter.rs.html#1432">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=[·...·truncated·by·diffoscope;·len:·1138,·SHA:·77ef6c59783729648d703fbd3483fc9ed1214c0fcad6ba03682d658230c4a434·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">SplitInclusive</a>&lt;'a,·P&gt;<div·class="where">where
25 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,25 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>,
26 ····&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#1450">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;mut·sel[·...·truncated·by·diffoscope;·len:·3309,·SHA:·3d080a34278bc51337338f653a46832595d7ca0a1b119bdbb25d64d935dfddc5·...·]/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">where26 ····&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.83.0/src/core/str/iter.rs.html#1450">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#tym[·...·truncated·by·diffoscope;·len:·3876,·SHA:·41eb092cd8049cff18492ee478e694a13e5b22e159e9df9066ad0e544b879d49·...·]/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
27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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,28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
29 ····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·takes29 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
30 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where30 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,32 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
33 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where33 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·79c9a268968d00e08eca141abac16bd87f73d67fc9288ac1f0bbc40b6c154400·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">SplitInclusive</a>&lt;'a,·P&gt;<div·class="where">where35 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·977,·SHA:·7923b87e0f24853d31acd6f4b8e11de65c3b05844c4e87ba1eccab247b4adf21·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitInclusive.html"·title="struct·alloc::str::SplitInclusive">SplitInclusive</a>&lt;'a,·P&gt;<div·class="where">where
36 ····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#1422">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·<a·c[·...·truncated·by·diffoscope;·len:·1354,·SHA:·d73af94a325975e38e3ffec1d60882f8fdada1832c084d9f9c0a85af0dd947c2·...·]/core/primitive.usize.html">usize</a>&gt;(36 ····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.83.0/src/core/str/iter.rs.html#1422">source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·1651,·SHA:·55f66c0698611757899666b75b71f212374ad51a0fccacf3f832552f29759313·...·]/core/primitive.usize.html">usize</a>&gt;(
37 ····&amp;mut·self,37 ····&amp;mut·self,
38 )·-&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">where38 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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
39 ····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:·177eaca31c5f515ccb1ee0493d98b81034be40d4400edd5405269b0c9895f142·...·]/core/primitive.usize.html">usize</a><div·class="where">where39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
40 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<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></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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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
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·starting·at·the·same·point,·but·stepping·by42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
43 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where43 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where45 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where47 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····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>49 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
50 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where50 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·each52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
53 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where53 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element57 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
58 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where58 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
62 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where62 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
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'>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>·methods63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
64 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See64 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
65 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where65 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where67 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
68 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where69 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where71 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
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'>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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
74 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where74 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····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,·but76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
77 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where77 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
79 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,79 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
80 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····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>·over82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
83 <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>,83 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
84 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where84 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
85 ····Self:·<a·class="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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
89 ····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;,89 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
91 ····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 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
92 ····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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
93 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
94 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
95 ····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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,97 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
102 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the105 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
106 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(112 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,114 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where115 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,117 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the118 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where125 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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; 143780/319846 bytes (44.95%) of diff not shown.
292 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.SplitN.html
    
Offset 1, 215 lines modifiedOffset 1, 215 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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>)1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.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>)
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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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">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="../../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>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.83.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.83.0/core/option/enum.Option.h[·...·truncated·by·diffoscope;·len:·120,·SHA:·4b616ef8e6e0b7f059a757829e4453e16033f46243768a39c5dce97286b8ed31·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.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">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="../../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:·8ee339eebdeed822e4ea20577209463efc6ff5436d18337c2cb7428cd14df443·...·]/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="https://doc.rust-lang.org/1.83.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:·b504da312b00128665ea9364a071d4912990b73f09e739b88c1c835767b5d493·...·]/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="../../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:·41e1740b51b6398d82744b8f54c240145bc120a3e3be1f781e4fa76c62230110·...·]/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="https://doc.rust-lang.org/1.83.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:·40aa0264db3a21eacb0ae28b14e6011d8257438208628a3322c1dc9d7c60903f·...·]/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="../../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:·5bfe19fedfc5134c359c3cc9816d5d3845ccad9a418a0ea7d499bd9346fa7f8a·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associated[·...·truncated·by·diffoscope;·len:·1657,·SHA:·8ee49a2e355ebf0a643f4308a5b2ac7081f367b522dfd3c276aeaa8b7a92dfb7·...·]/core/primitive.usize.html">usize</a>&gt;(
21 ····&amp;mut·self,21 ····&amp;mut·self,
22 )·-&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">where22 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·177eaca31c5f515ccb1ee0493d98b81034be40d4400edd5405269b0c9895f142·...·]/core/primitive.usize.html">usize</a><div·class="where">where23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
24 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
27 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where31 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>33 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
36 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each36 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
37 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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·element41 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
46 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
58 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····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,·but60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
63 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,63 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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>·over66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,75 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,78 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
81 ····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,81 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where82 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·returns85 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
86 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where86 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
89 ····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·the89 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
90 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where90 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where93 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·reducing95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
96 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(96 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,98 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
99 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where99 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
101 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
102 ····&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·the102 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
103 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where109 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
112 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(112 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
113 ····&amp;mut·self,113 ····&amp;mut·self,
114 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where115 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
117 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
118 ····&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·returns118 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
119 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where119 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
120 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,122 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····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·the124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
125 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where125 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
127 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
Max diff block lines reached; 92072/298382 bytes (30.86%) of diff not shown.
312 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.SplitTerminator.html
    
Offset 1, 226 lines modifiedOffset 1, 226 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·`split_terminator`."><title>SplitTerminator·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Terminator</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-SplitTerminator%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SplitTerminator%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitTerminator%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitTerminator%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitTerminator%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-SplitTerminator%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitTerminator%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitTerminator%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitTerminator%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitTerminator%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitTerminator%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">SplitTerminator</span><button·id="copy-path"·title="Copy·item·path·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#853-869">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitTerminator&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·`split_terminator`."><title>SplitTerminator·in·alloc::str·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(built»  from»      a»     source»       tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Split<wbr>Terminator</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-SplitTerminator%3C'a,+P%3E"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-SplitTerminator%3C'a,+P%3E"·title="Debug">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitTerminator%3C'a,+P%3E"·title="DoubleEndedIterator">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitTerminator%3C'a,+P%3E"·title="FusedIterator">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitTerminator%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-SplitTerminator%3C'a,+P%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitTerminator%3C'a,+P%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitTerminator%3C'a,+P%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-SplitTerminator%3C'a,+P%3E"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-SplitTerminator%3C'a,+P%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitTerminator%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">SplitTerminator</span><button·id="copy-path"·title="Copy·item·path·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.83.0/src/core/str/iter.rs.html#853-869">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·SplitTerminator&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="../../core/primitive.str.html#method.split_terminator"·title="method·str::split_terminator"><code>split_terminator</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="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.split_terminator"·title="method·str::split_terminator"><code>split_terminator</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-SplitTerminator%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#871">source</a><a·href="#impl-SplitTerminator%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">SplitTerminator</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-SplitTerminator%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#871">source</a><a·href="#impl-SplitTerminator%3C'a,+P%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·P&gt;·<a·class="struct"·href="struct.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">SplitTerminator</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="../../src/core/str/iter.rs.html#889">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;&a[·...·truncated·by·diffoscope;·len:·38,·SHA:·c8741f624921bfb95a775681d2d2bfde8ce5c58ee27fc726a7362ed3e72105df·...·]/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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#889">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.83.0/core/option/enum.Option.ht[·...·truncated·by·diffoscope;·len:·119,·SHA:·aa4567162171b306c19f9ae8daea24b74c267260802e9deba5206d4ead95cc5b·...·]/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">"A..B.."</span>.split_terminator(<span·class="string">'.'</span>);9 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"A..B.."</span>.split_terminator(<span·class="string">'.'</span>);
10 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"A..B.."</span>));10 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"A..B.."</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">".B.."</span>));12 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">".B.."</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+=+%22A..B..%22.split_terminator('.');%0A++++assert_eq!(split.remainder(),+Some(%22A..B..%22));%0A++++split.next();%0A++++assert_eq!(split.remainder(),+Some(%22.B..%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+=+%22A..B..%22.split_terminator('.');%0A++++assert_eq!(split.remainder(),+Some(%22A..B..%22));%0A++++split.next();%0A++++assert_eq!(split.remainder(),+Some(%22.B..%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-SplitTerminator%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#853-869">source</a></span><a·href="#impl-Clone-for-SplitTerminator%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.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">SplitTerminator</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-SplitTerminator%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.83.0/src/core/str/iter.rs.html#853-869">source</a></span><a·href="#impl-Clone-for-SplitTerminator%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.83.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">SplitTerminator</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="../../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:·1544,·SHA:·0675b348190d80f23698db5c0f8f6ece4af3e3bee7b19f5d46c20a0bf4e0bb5d·...·]/src/core/str/iter.rs.html#853-869">source</a></span><a·href="#impl-Debug-for-SplitTerminator%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.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">SplitTerminator</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="https://doc.rust-lang.org/1.83.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:·1760,·SHA:·e08b0a9d1628f341563d0019117271399e60a230105a2cd7a3b2e5e4119e4257·...·]/src/core/str/iter.rs.html#853-869">source</a></span><a·href="#impl-Debug-for-SplitTerminator%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.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">SplitTerminator</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="../../src/core/str/iter.rs.html#853-869">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:·1004,·SHA:·ea30eaef31e2c574792df93df25285d9ea3b55441e6400c876f44eb01fbdc569·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">SplitTerminator</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="https://doc.rust-lang.org/1.83.0/src/core/str/iter.rs.html#853-869">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:·1139,·SHA:·a7f572a9baab8798a6e9cef04ad61d9be9911c41a16862abe107c2e392387c9c·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>·for·<a·class="struct"·href="struct.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">SplitTerminator</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.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#853-869">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;mut·[·...·truncated·by·diffoscope;·len:·3312,·SHA:·dc220da3cc7e918c5a854aa2410d028bbb3244d0cc0863d1b8b115cecfb3d5bc·...·]/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">where21 ····&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.83.0/src/core/str/iter.rs.html#853-869">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#[·...·truncated·by·diffoscope;·len:·3879,·SHA:·d465278d55bccb16100b5db199f6d9cccb325cd23839f9edf9b662df6180eca7·...·]/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
22 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····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,23 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
24 ····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·takes24 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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
25 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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where25 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
26 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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,27 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
28 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where28 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·818,·SHA:·8720b18f16fb40488454bc5c6d6ccfbdc7ab9b12ea74312b26565afa9360b41f·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">SplitTerminator</a>&lt;'a,·P&gt;<div·class="where">where30 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·980,·SHA:·0f91aa324593ca189d25463b7417a2920b60da1d105f04300c6a80974c19aa17·...·]/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.SplitTerminator.html"·title="struct·alloc::str::SplitTerminator">SplitTerminator</a>&lt;'a,·P&gt;<div·class="where">where
31 ····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#853-869">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:·26ccbaf53295bef9827290499e9ece994fd0374dce2791ac5c77007ec49a7167·...·]/core/primitive.usize.html">usize</a>&gt;(31 ····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.83.0/src/core/str/iter.rs.html#853-869">source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associated[·...·truncated·by·diffoscope;·len:·1657,·SHA:·6a79d0aafdfb88d5e6b0cc5383363aa9743156ab0ea3b7fb81b589588cce6bf3·...·]/core/primitive.usize.html">usize</a>&gt;(
32 ····&amp;mut·self,32 ····&amp;mut·self,
33 )·-&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">where33 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·177eaca31c5f515ccb1ee0493d98b81034be40d4400edd5405269b0c9895f142·...·]/core/primitive.usize.html">usize</a><div·class="where">where34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
35 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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
37 ····Self:·<a·class="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·by37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
38 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where38 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where40 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where42 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
44 ····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>44 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where45 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
48 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where48 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::[·...·truncated·by·diffoscope;·len:·754,·SHA:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element52 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
53 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where53 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
56 ····Self:·<a·class="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·as56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
57 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where57 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<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'>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>·methods58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
59 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See59 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
60 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where60 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where62 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where64 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
65 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
66 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where66 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
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'>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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
68 ····Self:·<a·class="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·fewer68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
69 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where69 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
70 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····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,·but71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
72 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where72 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
74 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,74 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
75 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····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>·over77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
78 <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 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
79 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where79 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
83 ····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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
84 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,86 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
88 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,89 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
97 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
101 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(107 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,112 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the113 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
115 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where126 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 92828/319455 bytes (29.06%) of diff not shown.
310 KB
./usr/share/doc/rust-doc/html/alloc/str/struct.SplitWhitespace.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="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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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,1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»      2024-11-26)»   (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.83.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,
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="../../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>.3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·1e7e1dcc60c10e505c7d6fb387c6c526d48084258a0c2d177a96034ee1ebd90a·...·]/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="https://doc.rust-lang.org/1.83.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:·0e772174277e05149255aaa43382ec6f9fbb00700f13c75b8a6850de6d282121·...·]/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="../../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:·0758232d06945f8e55fc453e866b969187c4f102cdc4bae14f31329648aa4717·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clon[·...·truncated·by·diffoscope;·len:·8631,·SHA:·9fbf6162fa0cf1402d3aca284df27d37649eacf6652c54ac41af8154ef80c11e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes17 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·a37bf5ea3bd9dbfd1e8e45beb50f58198913521b627569902157eff0222cb09a·...·]/core/primitive.usize.html">usize</a>&gt;(23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·5195,·SHA:·ac9c2311e53558a8f0509133b5cc6039aa4b04e097ffb8f8c23cbc6cfbf70d0a·...·]/core/primitive.usize.html">usize</a>&gt;(
24 ····&amp;mut·self,24 ····&amp;mut·self,
25 )·-&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">where25 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</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><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:·7f08fab3840e63f93f559442f0e17e35484e9059b67893b06d16622df49f52d9·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
29 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
31 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>35 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each38 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
39 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
41 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element43 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
48 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
55 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
60 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····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,·but62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
65 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,65 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
66 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····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>·over68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
77 ····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;,77 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····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;,80 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
81 ····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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
82 ····T:·'a,82 ····T:·'a,
83 ····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;,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
84 ····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,84 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.85 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
86 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where86 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
92 ····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·returns92 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
93 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where93 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
95 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the96 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
97 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where97 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where100 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(103 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,105 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where106 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,108 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the109 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
111 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
113 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,115 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
116 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where116 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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">where122 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,124 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
Max diff block lines reached; 86660/317506 bytes (27.29%) of diff not shown.
66.7 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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.83.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>
2 <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·character2 <p>A·<code>Utf8Chunk</code>·stores·a·sequence·of·<a·href="https://doc.rust-lang.org/1.83.0/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="../../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:·ebac9c1f7ac83164269f1d3138fc4f2f25752e1c847905aba6e362a5d5724467·...·]/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="https://doc.rust-lang.org/1.83.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:·36e85b330b4dc8930fbf39f40ab460bf51795a7ababf2acae3b7030a3819f7e0·...·]/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="../../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>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.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·d5358d57ceaba7af27bb8718590041fc5e5d82dd653818daff0c425b522919e9·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/trait[·...·truncated·by·diffoscope;·len:·5510,·SHA:·262b107ce379db56e4f1a9035475712d1f171f23532b632861018fb36ac02b15·...·]/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="../../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:·a570e0e2250e851c7294cb9b59c42e3722770141e2c9292b1ee74d72050ae1fd·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/cmp/trait.Eq.h[·...·truncated·by·diffoscope;·len:·4189,·SHA:·0648972d9c2681c1abe06db4cd3493132a613738bcd2514f1303e9476fe03658·...·]/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·[·...·truncated·by·diffoscope;·len:·672,·SHA:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·177b78315f049c4065999398ed2f89f85b6487d450f04912cef3a3be057e45e9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where27 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·604f234273b763a6bed19dbd345c594cd2aa8776b239765ce764b1e7c24bf9c9·...·]/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[·...·truncated·by·diffoscope;·len:·1551,·SHA:·a703c408c4e022a9f5f607159372ac6d607aaf923b3e1387c117f9b36f5022ac·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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=[·...·truncated·by·diffoscope;·len:·156,·SHA:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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="../../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:·0f36698ef1f8522439780e4de3b8f612c0a7a09c8f896d4b7a61bbeffa463db0·...·]/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="https://doc.rust-lang.org/1.83.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:·e25370032e85c931ad62255b1432a49de1bcc5c915b5198766f5b1f371bb8599·...·]/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·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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>
283 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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·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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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.83.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·slices
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>2 (<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>)·and·byte·slices·(<a·href="https://doc.rust-lang.org/1.83.0/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, 197 lines modifiedOffset 12, 197 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="../../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:·492817819bd24f77fc6fd201186ef0f28e1108103a859d24d5ebc787ea773a7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/tra[·...·truncated·by·diffoscope;·len:·6258,·SHA:·15f82fd7f57d3965b9d0246d1ef2dbeed40a7bd3634b9f7713dbd7e53b380b04·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·177eaca31c5f515ccb1ee0493d98b81034be40d4400edd5405269b0c9895f142·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·9454ffc8080b647e81e8af6d77897c69e10b0d92c708f7aab98905a1b0a3a993·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
25 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>31 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
35 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::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·element39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
44 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
56 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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,·but58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
62 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····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>·over64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,73 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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="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;,76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
78 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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,79 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
84 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the87 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
88 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::[·...·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·reducing93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(94 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,99 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the100 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where107 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where113 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,115 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
116 ····&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·returns116 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where117 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
119 ····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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,120 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
121 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,121 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
122 ····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·the122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
123 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/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="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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="../../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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/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="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
127 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,127 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
Max diff block lines reached; 86285/289630 bytes (29.79%) of diff not shown.
83.4 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»   2024-11-26)»(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.83.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:·b649efee9cec9586b35638e945f62b03060178f589b74ed56d3db7ea34eeaa1c·...·]/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="../../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:·39d028922c316d20ba26a309ab97100ea918db654d18fcf8466fb7962968178e·...·]/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="https://doc.rust-lang.org/1.83.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:·822113c33f9568809a7a3667d61899cb93f9e71e0b6c15488dd1a2ef8482a3d1·...·]/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="../../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>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.83.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.83.0/core/option/[·...·truncated·by·diffoscope;·len:·125,·SHA:·b5fa8eac91ddac602db91ecc3d5a50f0d970ef86e049b2c47448dc84e0409adf·...·]/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="../../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:·4691e8284255fcc3cd9ed912d07ae4ddbfe8f3e1b2c3f676f5cd550495d61584·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/clone/trait.Clone.html"·title[·...·truncated·by·diffoscope;·len:·11649,·SHA:·95bf64c1f023f3ffb14deaa6f967ac0bbb4302d3702f6d0847e1a6b9a1297923·...·]/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="../../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:·993c32a87fcfb6b6fab10e462612b6e693a0c4e608d4e3267ee4f0f2553df887·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/marker/trait.Copy.html"·title=[·...·truncated·by·diffoscope;·len:·4484,·SHA:·e00df5bad53f08a1cf9cec69dadcffe7a43994bc2f4fc1b49f672a996ad3e0dd·...·]/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="../../core/marker/trait.Sized.html"·title="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:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·177b78315f049c4065999398ed2f89f85b6487d450f04912cef3a3be057e45e9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where70 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·604f234273b763a6bed19dbd345c594cd2aa8776b239765ce764b1e7c24bf9c9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
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:·1551,·SHA:·a703c408c4e022a9f5f607159372ac6d607aaf923b3e1387c117f9b36f5022ac·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·c2c8c9a4a4178ce9f649b57ef777997f02105c416fe8b6a7efafe289a2c82f94·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·3bbde9fc45defa1dca05b2d321fdaad6904f701633b311a788797b29fc3d0d8c·...·]/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#2672-2686">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="../../core/marker/trait.Sized.html"·title="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:·b3522f6656a75b8786d727c522d67358e29dfa2964a2f89c2aa386e5cf9583ce·...·]/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="https://doc.rust-lang.org/1.83.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:·4e66fd818d0db79470c3c05df8933adf2420d3b968fd4ca310e2824aa93e7fa4·...·]/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="../../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:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../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:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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>
100 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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="#object-safety">Object·Safety</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>·{1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»     2024-11-26)»  (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="#object-safety">Object·Safety</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.83.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.83.0/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="../../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;;4 ····fn·<a·href="#tymethod.from_str"·class="fn">from_str</a>(s:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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;;
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="../../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>7 <a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>’s·<a·href="https://doc.rust-lang.org/1.83.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:·9b03839efc65ba9c7b4922243ecab6422ddbdbb20c170c67360d5dff76cff9bc·...·]/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="../../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="https://doc.rust-lang.org/1.83.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>
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>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.83.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.83.0/core/primitive.str.html">[·...·truncated·by·diffoscope;·len:·69,·SHA:·a0282f73c5e70a4dcbeacd9424504e4f1969b35197bb53e5e46557f01151cc8a·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../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="https://doc.rust-lang.org/1.83.0/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="object-safety"·class="section-header">Object·Safety<a·href="#object-safety"·class="anchor">§</a></h2><div·class="object-safety-info">This·trait·is·<b>not</b>·<a·href="https://doc.rust-lang.org/1.83.0/reference/items/traits.html#object-safety">object·safe</a>.</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:·38024,·SHA:·01dacb9c25e348a06129d0d6145b7af7855492f0b97896fe432d8173b47823a6·...·]</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="object-safety"·class="section-header">Object·Safety<a·href="#object-safety"·class="anchor">§</a></h2><div·class="object-safety-info">This·trait·is·<b>not</b>·<a·href="https://doc.rust-lang.org/1.83.0/reference/items/traits.html#object-safety">object·safe</a>.</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.83.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:·42020,·SHA:·5b240fead015de7ee9b0c4eae2b4d28f1819de850177eb4ad28ac44cb945dcff·...·]</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.23 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="../../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="https://doc.rust-lang.org/1.83.0/core/convert/enum.Infallible.html"·title="convert::Infallible"><code>Infallible</code></a>.</div></li></ul></section></div></main></body></html>
294 KB
./usr/share/doc/rust-doc/html/alloc/string/struct.Drain.html
    
Offset 1, 211 lines modifiedOffset 1, 211 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#3099-3108">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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#3099-3108">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#3136-3153">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#3150-3152">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>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#3136-3153">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#3150-3152">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.83.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>
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#3163-3167">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:·b86ae95b0388d9e58c9b539f1d61463aefac4aea7ffcd8c9be315a56651cac02·...·]/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#3163-3167">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.83.0/core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;[<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.u8.html">u8</a>]&gt;·for·<a·class="struct"·href="struct.Drain.html"·[·...·truncated·by·diffoscope;·len:·8571,·SHA:·ce978d7b76bbd021a887d333d8fe35ed4d8415256021a0329eff073c32df0b18·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes14 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·0f39424e94dc573773f32553a364a2cde39e57e417aebb898ff8220d6e538605·...·]/core/primitive.usize.html">usize</a>&gt;(20 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·6259,·SHA:·fb0415fa6ec216424d316fddb869c659ad4d1ca2f3307e24f6f62a5c3a490c44·...·]/core/primitive.usize.html">usize</a>&gt;(
21 ····&amp;mut·self,21 ····&amp;mut·self,
22 )·-&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">where22 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
24 ····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:·7f08fab3840e63f93f559442f0e17e35484e9059b67893b06d16622df49f52d9·...·]/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="https://doc.rust-lang.org/1.83.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:·1e5712068ad3bd639a64cb4adad8255770470539209e93621f07a778cef383fa·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
26 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
28 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
30 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where30 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>32 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each35 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
36 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
40 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
45 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
57 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····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,·but59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
62 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,62 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
63 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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>·over65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(&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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,74 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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="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;,77 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
79 ····T:·'a,79 ····T:·'a,
80 ····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;,80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
81 ····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,81 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.82 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
83 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where83 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
84 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
85 ····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,85 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where86 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·R,88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
89 ····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·returns89 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
90 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where90 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
92 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the93 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
94 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where94 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
95 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,95 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
97 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where97 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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
100 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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(100 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(
101 ····&amp;mut·self,101 ····&amp;mut·self,
102 ····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::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
103 )·-&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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where103 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
106 ····&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·the106 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
107 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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
108 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
110 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
111 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
113 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where113 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
115 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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·returns115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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
116 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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····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 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
122 ····&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·returns122 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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
123 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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where123 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</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::Iterator::[·...·truncated·by·diffoscope;·len:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where125 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,126 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
127 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 77059/300449 bytes (25.65%) 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="../../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:·56b3b6ea36e4cf55ca8a4be49a08ba4c2adc5e6a615cc56d5f72274641eb9df7·...·]/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="https://doc.rust-lang.org/1.83.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:·6350c94610e42105734a314ac0bf4e649863fcd897abf33fc7e5a023bb247b55·...·]/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·[·...·truncated·by·diffoscope;·len:·672,·SHA:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·b8ab8ac1cc2cc1dfc3bc940ed349e05673824a92857cb43c3be63178bec2b910·...·]/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="https://doc.rust-lang.org/1.83.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:·26e459c77cb9bf051c3ac640d0b2b3ec4b272937eed48d93c8732b2ebd34408b·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/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=[·...·truncated·by·diffoscope;·len:·156,·SHA:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="https://doc.rust-lang.org/1.83.0/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#2672-2686">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#2672-2686">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="../../core/marker/trait.Sized.html"·title="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:·e7dd551938ce202ed1e423a236b8b40fb54afd68eb34cc79382fd0d2c5b7b015·...·]/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="https://doc.rust-lang.org/1.83.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:·a841c3b5f8d49341faedbd118ba845ad74a2850302704b5900afb1ca8b452e04·...·]/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·c[·...·truncated·by·diffoscope;·len:·1676,·SHA:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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-imp[·...·truncated·by·diffoscope;·len:·1308,·SHA:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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="../../core/str/index.html"·title="std::str"><code>std::str</code></a>·represents·an·error·that·may6 <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.83.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="../../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’s7 occur·when·converting·a·slice·of·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·to·a·<a·href="https://doc.rust-lang.org/1.83.0/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="../../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>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.83.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.83.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>
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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../core/str/index.html"·title="std::str"><code>std::str</code></a>·represents·an·error·that·may47 <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.83.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="../../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’s48 occur·when·converting·a·slice·of·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·to·a·<a·href="https://doc.rust-lang.org/1.83.0/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="../../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:·a1f4b17e871114770a29b6d7f3a31a5cc59a4880d72826ede63959154a239075·...·]/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="https://doc.rust-lang.org/1.83.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:·481423e057817701d82a100452a27961558c55e35527d6a56a4d44fc473641e6·...·]/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="../../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:·b0f0faab68610a4503f04185a2715f300a4a471ba7a47e45bf41591e54cfff17·...·]/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="https://doc.rust-lang.org/1.83.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:·0bf8b564ff80d91d143810e1917c18ca3840db60fae6d757bc2cbb1780bee170·...·]/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="../../core/marker/trait.Sized.html"·title="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:·10d3608cfe3497043f7e854d041ae0546d066759d2fd615c4c0b3d3ce4e3b858·...·]/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="https://doc.rust-lang.org/1.83.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:·014ff1ed90e8da853acc2dd99d9ac8083bf034e7c18fab961b332b35c04f1397·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·280a51baaee300e0fb86a3f493fa2740c24122a5ca8a6f4cd0257da3824bd64b·...·]/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="https://doc.rust-lang.org/1.83.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:·f6a2ecbfc9336b9c257867f628cd1ccd012231b7ca4b4313afcea64cbe1fe575·...·]/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="../../core/marker/trait.Sized.html"·title="trait·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:·177b78315f049c4065999398ed2f89f85b6487d450f04912cef3a3be057e45e9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where61 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·604f234273b763a6bed19dbd345c594cd2aa8776b239765ce764b1e7c24bf9c9·...·]/core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where
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:·1551,·SHA:·a703c408c4e022a9f5f607159372ac6d607aaf923b3e1387c117f9b36f5022ac·...·]/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="https://doc.rust-lang.org/1.83.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:·1794,·SHA:·12897e3749a46ba7c5ad5bd3287a5586bce03f170ef2ea74787c44a2d82bb1fe·...·]/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="../../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">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="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·63e0f802f8dfa5b15512cd4499bce305a0db1cee8c1a5817d9d5baeb2224f545·...·]/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="https://doc.rust-lang.org/1.83.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:·ada60a7e6d10bc673531d912d15f68a143421d5383a8f5c5b060b1e51489bd7d·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·c2c8c9a4a4178ce9f649b57ef777997f02105c416fe8b6a7efafe289a2c82f94·...·]/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#2672-2686">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="https://doc.rust-lang.org/1.83.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:·3bbde9fc45defa1dca05b2d321fdaad6904f701633b311a788797b29fc3d0d8c·...·]/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#2672-2686">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="../../core/marker/trait.Sized.html"·title="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:·e7dd551938ce202ed1e423a236b8b40fb54afd68eb34cc79382fd0d2c5b7b015·...·]/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="https://doc.rust-lang.org/1.83.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:·a841c3b5f8d49341faedbd118ba845ad74a2850302704b5900afb1ca8b452e04·...·]/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="../../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:·2065f4a178efd1693a770f33c70aea3754e5cc344c1478f509b9d44876474b42·...·]/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="https://doc.rust-lang.org/1.83.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:·26cad7dbb94e80dd743fb0882a61c49de95851b1af81310fb1e4509c7a224edb·...·]/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="../../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:·6b503c5b69c06e6805400037cc8a22d82ad5bd6efd068aff1aa7de67cd9aa46d·...·]/core/convert/trait.TryFrom.html#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="https://doc.rust-lang.org/1.83.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:·f62138083f41d11034686ce09abdf68afa59b5cc0d148b7ece1ad45c5831b772·...·]/core/convert/trait.TryFrom.html#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>
791 KB
./usr/share/doc/rust-doc/html/alloc/string/struct.String.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="A·UTF-8–encoded,·growable·string."><title>String·in·alloc::string·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">String</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li><li><a·href="#utf-8"·title="UTF-8">UTF-8</a></li><li><a·href="#deref"·title="Deref">Deref</a></li><li><a·href="#representation"·title="Representation">Representation</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_mut_str"·title="as_mut_str">as_mut_str</a></li><li><a·href="#method.as_mut_vec"·title="as_mut_vec">as_mut_vec</a></li><li><a·href="#method.as_str"·title="as_str">as_str</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.extend_from_within"·title="extend_from_within">extend_from_within</a></li><li><a·href="#method.from_raw_parts"·title="from_raw_parts">from_raw_parts</a></li><li><a·href="#method.from_utf16"·title="from_utf16">from_utf16</a></li><li><a·href="#method.from_utf16_lossy"·title="from_utf16_lossy">from_utf16_lossy</a></li><li><a·href="#method.from_utf16be"·title="from_utf16be">from_utf16be</a></li><li><a·href="#method.from_utf16be_lossy"·title="from_utf16be_lossy">from_utf16be_lossy</a></li><li><a·href="#method.from_utf16le"·title="from_utf16le">from_utf16le</a></li><li><a·href="#method.from_utf16le_lossy"·title="from_utf16le_lossy">from_utf16le_lossy</a></li><li><a·href="#method.from_utf8"·title="from_utf8">from_utf8</a></li><li><a·href="#method.from_utf8_lossy"·title="from_utf8_lossy">from_utf8_lossy</a></li><li><a·href="#method.from_utf8_lossy_owned"·title="from_utf8_lossy_owned">from_utf8_lossy_owned</a></li><li><a·href="#method.from_utf8_unchecked"·title="from_utf8_unchecked">from_utf8_unchecked</a></li><li><a·href="#method.insert"·title="insert">insert</a></li><li><a·href="#method.insert_str"·title="insert_str">insert_str</a></li><li><a·href="#method.into_boxed_str"·title="into_boxed_str">into_boxed_str</a></li><li><a·href="#method.into_bytes"·title="into_bytes">into_bytes</a></li><li><a·href="#method.into_raw_parts"·title="into_raw_parts">into_raw_parts</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.leak"·title="leak">leak</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.pop"·title="pop">pop</a></li><li><a·href="#method.push"·title="push">push</a></li><li><a·href="#method.push_str"·title="push_str">push_str</a></li><li><a·href="#method.remove"·title="remove">remove</a></li><li><a·href="#method.remove_matches"·title="remove_matches">remove_matches</a></li><li><a·href="#method.replace_range"·title="replace_range">replace_range</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.split_off"·title="split_off">split_off</a></li><li><a·href="#method.truncate"·title="truncate">truncate</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.try_with_capacity"·title="try_with_capacity">try_with_capacity</a></li><li><a·href="#method.with_capacity"·title="with_capacity">with_capacity</a></li></ul><h3><a·href="#deref-methods-str">Methods·from·Deref&lt;<wbr>Target=str&gt;</a></h3><ul·class="block·deref-methods"><li><a·href="#method.as_ascii"·title="as_ascii">as_ascii</a></li><li><a·href="#method.as_bytes-1"·title="as_bytes">as_bytes</a></li><li><a·href="#method.as_bytes_mut"·title="as_bytes_mut">as_bytes_mut</a></li><li><a·href="#method.as_mut_ptr"·title="as_mut_ptr">as_mut_ptr</a></li><li><a·href="#method.as_ptr"·title="as_ptr">as_ptr</a></li><li><a·href="#method.as_str-1"·title="as_str">as_str</a></li><li><a·href="#method.bytes"·title="bytes">bytes</a></li><li><a·href="#method.ceil_char_boundary"·title="ceil_char_boundary">ceil_char_boundary</a></li><li><a·href="#method.char_indices"·title="char_indices">char_indices</a></li><li><a·href="#method.chars"·title="chars">chars</a></li><li><a·href="#method.contains"·title="contains">contains</a></li><li><a·href="#method.encode_utf16"·title="encode_utf16">encode_utf16</a></li><li><a·href="#method.ends_with"·title="ends_with">ends_with</a></li><li><a·href="#method.eq_ignore_ascii_case"·title="eq_ignore_ascii_case">eq_ignore_ascii_case</a></li><li><a·href="#method.escape_debug"·title="escape_debug">escape_debug</a></li><li><a·href="#method.escape_default"·title="escape_default">escape_default</a></li><li><a·href="#method.escape_unicode"·title="escape_unicode">escape_unicode</a></li><li><a·href="#method.find"·title="find">find</a></li><li><a·href="#method.floor_char_boundary"·title="floor_char_boundary">floor_char_boundary</a></li><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.get_unchecked"·title="get_unchecked">get_unchecked</a></li><li><a·href="#method.get_unchecked_mut"·title="get_unchecked_mut">get_unchecked_mut</a></li><li><a·href="#method.is_ascii"·title="is_ascii">is_ascii</a></li><li><a·href="#method.is_char_boundary"·title="is_char_boundary">is_char_boundary</a></li><li><a·href="#method.is_empty-1"·title="is_empty">is_empty</a></li><li><a·href="#method.len-1"·title="len">len</a></li><li><a·href="#method.lines"·title="lines">lines</a></li><li><a·href="#method.lines_any"·title="lines_any">lines_any</a></li><li><a·href="#method.make_ascii_lowercase"·title="make_ascii_lowercase">make_ascii_lowercase</a></li><li><a·href="#method.make_ascii_uppercase"·title="make_ascii_uppercase">make_ascii_uppercase</a></li><li><a·href="#method.match_indices"·title="match_indices">match_indices</a></li><li><a·href="#method.matches"·title="matches">matches</a></li><li><a·href="#method.parse"·title="parse">parse</a></li><li><a·href="#method.repeat"·title="repeat">repeat</a></li><li><a·href="#method.replace"·title="replace">replace</a></li><li><a·href="#method.replacen"·title="replacen">replacen</a></li><li><a·href="#method.rfind"·title="rfind">rfind</a></li><li><a·href="#method.rmatch_indices"·title="rmatch_indices">rmatch_indices</a></li><li><a·href="#method.rmatches"·title="rmatches">rmatches</a></li><li><a·href="#method.rsplit"·title="rsplit">rsplit</a></li><li><a·href="#method.rsplit_once"·title="rsplit_once">rsplit_once</a></li><li><a·href="#method.rsplit_terminator"·title="rsplit_terminator">rsplit_terminator</a></li><li><a·href="#method.rsplitn"·title="rsplitn">rsplitn</a></li><li><a·href="#method.slice_mut_unchecked"·title="slice_mut_unchecked">slice_mut_unchecked</a></li><li><a·href="#method.slice_unchecked"·title="slice_unchecked">slice_unchecked</a></li><li><a·href="#method.split"·title="split">split</a></li><li><a·href="#method.split_ascii_whitespace"·title="split_ascii_whitespace">split_ascii_whitespace</a></li><li><a·href="#method.split_at"·title="split_at">split_at</a></li><li><a·href="#method.split_at_checked"·title="split_at_checked">split_at_checked</a></li><li><a·href="#method.split_at_mut"·title="split_at_mut">split_at_mut</a></li><li><a·href="#method.split_at_mut_checked"·title="split_at_mut_checked">split_at_mut_checked</a></li><li><a·href="#method.split_inclusive"·title="split_inclusive">split_inclusive</a></li><li><a·href="#method.split_once"·title="split_once">split_once</a></li><li><a·href="#method.split_terminator"·title="split_terminator">split_terminator</a></li><li><a·href="#method.split_whitespace"·title="split_whitespace">split_whitespace</a></li><li><a·href="#method.splitn"·title="splitn">splitn</a></li><li><a·href="#method.starts_with"·title="starts_with">starts_with</a></li><li><a·href="#method.strip_prefix"·title="strip_prefix">strip_prefix</a></li><li><a·href="#method.strip_suffix"·title="strip_suffix">strip_suffix</a></li><li><a·href="#method.substr_range"·title="substr_range">substr_range</a></li><li><a·href="#method.to_ascii_lowercase"·title="to_ascii_lowercase">to_ascii_lowercase</a></li><li><a·href="#method.to_ascii_uppercase"·title="to_ascii_uppercase">to_ascii_uppercase</a></li><li><a·href="#method.to_lowercase"·title="to_lowercase">to_lowercase</a></li><li><a·href="#method.to_uppercase"·title="to_uppercase">to_uppercase</a></li><li><a·href="#method.trim"·title="trim">trim</a></li><li><a·href="#method.trim_ascii"·title="trim_ascii">trim_ascii</a></li><li><a·href="#method.trim_ascii_end"·title="trim_ascii_end">trim_ascii_end</a></li><li><a·href="#method.trim_ascii_start"·title="trim_ascii_start">trim_ascii_start</a></li><li><a·href="#method.trim_end"·title="trim_end">trim_end</a></li><li><a·href="#method.trim_end_matches"·title="trim_end_matches">trim_end_matches</a></li><li><a·href="#method.trim_left"·title="trim_left">trim_left</a></li><li><a·href="#method.trim_left_matches"·title="trim_left_matches">trim_left_matches</a></li><li><a·href="#method.trim_matches"·title="trim_matches">trim_matches</a></li><li><a·href="#method.trim_right"·title="trim_right">trim_right</a></li><li><a·href="#method.trim_right_matches"·title="trim_right_matches">trim_right_matches</a></li><li><a·href="#method.trim_start"·title="trim_start">trim_start</a></li><li><a·href="#method.trim_start_matches"·title="trim_start_matches">trim_start_matches</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Add%3C%26str%3E-for-String"·title="Add&#60;&#38;str&#62;">Add&#60;&#38;str&#62;</a></li><li><a·href="#impl-AddAssign%3C%26str%3E-for-String"·title="AddAssign&#60;&#38;str&#62;">AddAssign&#60;&#38;str&#62;</a></li><li><a·href="#impl-AsMut%3Cstr%3E-for-String"·title="AsMut&#60;str&#62;">AsMut&#60;str&#62;</a></li><li><a·href="#impl-AsRef%3C%5Bu8%5D%3E-for-String"·title="AsRef&#60;[u8]&#62;">AsRef&#60;[u8]&#62;</a></li><li><a·href="#impl-AsRef%3Cstr%3E-for-String"·title="AsRef&#60;str&#62;">AsRef&#60;str&#62;</a></li><li><a·href="#impl-Borrow%3Cstr%3E-for-String"·title="Borrow&#60;str&#62;">Borrow&#60;str&#62;</a></li><li><a·href="#impl-BorrowMut%3Cstr%3E-for-String"·title="BorrowMut&#60;str&#62;">BorrowMut&#60;str&#62;</a></li><li><a·href="#impl-Clone-for-String"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-String"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-String"·title="Default">Default</a></li><li><a·href="#impl-Deref-for-String"·title="Deref">Deref</a></li><li><a·href="#impl-DerefMut-for-String"·title="DerefMut">DerefMut</a></li><li><a·href="#impl-DerefPure-for-String"·title="DerefPure">DerefPure</a></li><li><a·href="#impl-Display-for-String"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-String"·title="Eq">Eq</a></li><li><a·href="#impl-Extend%3C%26char%3E-for-String"·title="Extend&#60;&#38;&#39;a·char&#62;">Extend&#60;&#38;&#39;a·char&#62;</a></li><li><a·href="#impl-Extend%3C%26str%3E-for-String"·title="Extend&#60;&#38;&#39;a·str&#62;">Extend&#60;&#38;&#39;a·str&#62;</a></li><li><a·href="#impl-Extend%3CBox%3Cstr,+A%3E%3E-for-String"·title="Extend&#60;Box&#60;str,·A&#62;&#62;">Extend&#60;Box&#60;str,·A&#62;&#62;</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-Extend%3CString%3E-for-String"·title="Extend&#60;String&#62;">Extend&#60;String&#62;</a></li><li><a·href="#impl-Extend%3Cchar%3E-for-String"·title="Extend&#60;char&#62;">Extend&#60;char&#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%26String%3E-for-String"·title="From&#60;&#38;String&#62;">From&#60;&#38;String&#62;</a></li><li><a·href="#impl-From%3C%26mut+str%3E-for-String"·title="From&#60;&#38;mut·str&#62;">From&#60;&#38;mut·str&#62;</a></li><li><a·href="#impl-From%3C%26str%3E-for-String"·title="From&#60;&#38;str&#62;">From&#60;&#38;str&#62;</a></li><li><a·href="#impl-From%3CBox%3Cstr%3E%3E-for-String"·title="From&#60;Box&#60;str&#62;&#62;">From&#60;Box&#60;str&#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%3CString%3E-for-Arc%3Cstr%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cdyn+Error%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cstr%3E"·title="From&#60;String&#62;">From&#60;String&#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%3CString%3E-for-Rc%3Cstr%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CString%3E-for-Vec%3Cu8%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3Cchar%3E-for-String"·title="From&#60;char&#62;">From&#60;char&#62;</a></li><li><a·href="#impl-FromIterator%3C%26char%3E-for-String"·title="FromIterator&#60;&#38;&#39;a·char&#62;">FromIterator&#60;&#38;&#39;a·char&#62;</a></li><li><a·href="#impl-FromIterator%3C%26str%3E-for-String"·title="FromIterator&#60;&#38;&#39;a·str&#62;">FromIterator&#60;&#38;&#39;a·str&#62;</a></li><li><a·href="#impl-FromIterator%3CBox%3Cstr,+A%3E%3E-for-String"·title="FromIterator&#60;Box&#60;str,·A&#62;&#62;">FromIterator&#60;Box&#60;str,·A&#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-Box%3Cstr%3E"·title="FromIterator&#60;String&#62;">FromIterator&#60;String&#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%3CString%3E-for-String"·title="FromIterator&#60;String&#62;">FromIterator&#60;String&#62;</a></li><li><a·href="#impl-FromIterator%3Cchar%3E-for-String"·title="FromIterator&#60;char&#62;">FromIterator&#60;char&#62;</a></li><li><a·href="#impl-FromStr-for-String"·title="FromStr">FromStr</a></li><li><a·href="#impl-Hash-for-String"·title="Hash">Hash</a></li><li><a·href="#impl-Index%3CI%3E-for-String"·title="Index&#60;I&#62;">Index&#60;I&#62;</a></li><li><a·href="#impl-IndexMut%3CI%3E-for-String"·title="IndexMut&#60;I&#62;">IndexMut&#60;I&#62;</a></li><li><a·href="#impl-Ord-for-String"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-String"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialEq%3C%26str%3E-for-String"·title="PartialEq&#60;&#38;&#39;a·str&#62;">PartialEq&#60;&#38;&#39;a·str&#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%3CString%3E-for-%26str"·title="PartialEq&#60;String&#62;">PartialEq&#60;String&#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%3CString%3E-for-str"·title="PartialEq&#60;String&#62;">PartialEq&#60;String&#62;</a></li><li><a·href="#impl-PartialEq%3Cstr%3E-for-String"·title="PartialEq&#60;str&#62;">PartialEq&#60;str&#62;</a></li><li><a·href="#impl-PartialOrd-for-String"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-Pattern-for-%26String"·title="Pattern">Pattern</a></li><li><a·href="#impl-StructuralPartialEq-for-String"·title="StructuralPartialEq">StructuralPartialEq</a></li><li><a·href="#impl-Write-for-String"·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-Freeze-for-String"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-String"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-String"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-String"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-String"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-String"·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">String</span><button·id="copy-path"·title="Copy·item·path·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#362-364">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·String·{·<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·UTF-8–encoded,·growable·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="A·UTF-8–encoded,·growable·string."><title>String·in·alloc::string·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (built» from»     a»    source»      tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">String</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#examples"·title="Examples">Examples</a></li><li><a·href="#utf-8"·title="UTF-8">UTF-8</a></li><li><a·href="#deref"·title="Deref">Deref</a></li><li><a·href="#representation"·title="Representation">Representation</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_mut_str"·title="as_mut_str">as_mut_str</a></li><li><a·href="#method.as_mut_vec"·title="as_mut_vec">as_mut_vec</a></li><li><a·href="#method.as_str"·title="as_str">as_str</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.extend_from_within"·title="extend_from_within">extend_from_within</a></li><li><a·href="#method.from_raw_parts"·title="from_raw_parts">from_raw_parts</a></li><li><a·href="#method.from_utf16"·title="from_utf16">from_utf16</a></li><li><a·href="#method.from_utf16_lossy"·title="from_utf16_lossy">from_utf16_lossy</a></li><li><a·href="#method.from_utf16be"·title="from_utf16be">from_utf16be</a></li><li><a·href="#method.from_utf16be_lossy"·title="from_utf16be_lossy">from_utf16be_lossy</a></li><li><a·href="#method.from_utf16le"·title="from_utf16le">from_utf16le</a></li><li><a·href="#method.from_utf16le_lossy"·title="from_utf16le_lossy">from_utf16le_lossy</a></li><li><a·href="#method.from_utf8"·title="from_utf8">from_utf8</a></li><li><a·href="#method.from_utf8_lossy"·title="from_utf8_lossy">from_utf8_lossy</a></li><li><a·href="#method.from_utf8_lossy_owned"·title="from_utf8_lossy_owned">from_utf8_lossy_owned</a></li><li><a·href="#method.from_utf8_unchecked"·title="from_utf8_unchecked">from_utf8_unchecked</a></li><li><a·href="#method.insert"·title="insert">insert</a></li><li><a·href="#method.insert_str"·title="insert_str">insert_str</a></li><li><a·href="#method.into_boxed_str"·title="into_boxed_str">into_boxed_str</a></li><li><a·href="#method.into_bytes"·title="into_bytes">into_bytes</a></li><li><a·href="#method.into_raw_parts"·title="into_raw_parts">into_raw_parts</a></li><li><a·href="#method.is_empty"·title="is_empty">is_empty</a></li><li><a·href="#method.leak"·title="leak">leak</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.pop"·title="pop">pop</a></li><li><a·href="#method.push"·title="push">push</a></li><li><a·href="#method.push_str"·title="push_str">push_str</a></li><li><a·href="#method.remove"·title="remove">remove</a></li><li><a·href="#method.remove_matches"·title="remove_matches">remove_matches</a></li><li><a·href="#method.replace_range"·title="replace_range">replace_range</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.split_off"·title="split_off">split_off</a></li><li><a·href="#method.truncate"·title="truncate">truncate</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.try_with_capacity"·title="try_with_capacity">try_with_capacity</a></li><li><a·href="#method.with_capacity"·title="with_capacity">with_capacity</a></li></ul><h3><a·href="#deref-methods-str">Methods·from·Deref&lt;<wbr>Target=str&gt;</a></h3><ul·class="block·deref-methods"><li><a·href="#method.as_ascii"·title="as_ascii">as_ascii</a></li><li><a·href="#method.as_bytes-1"·title="as_bytes">as_bytes</a></li><li><a·href="#method.as_bytes_mut"·title="as_bytes_mut">as_bytes_mut</a></li><li><a·href="#method.as_mut_ptr"·title="as_mut_ptr">as_mut_ptr</a></li><li><a·href="#method.as_ptr"·title="as_ptr">as_ptr</a></li><li><a·href="#method.as_str-1"·title="as_str">as_str</a></li><li><a·href="#method.bytes"·title="bytes">bytes</a></li><li><a·href="#method.ceil_char_boundary"·title="ceil_char_boundary">ceil_char_boundary</a></li><li><a·href="#method.char_indices"·title="char_indices">char_indices</a></li><li><a·href="#method.chars"·title="chars">chars</a></li><li><a·href="#method.contains"·title="contains">contains</a></li><li><a·href="#method.encode_utf16"·title="encode_utf16">encode_utf16</a></li><li><a·href="#method.ends_with"·title="ends_with">ends_with</a></li><li><a·href="#method.eq_ignore_ascii_case"·title="eq_ignore_ascii_case">eq_ignore_ascii_case</a></li><li><a·href="#method.escape_debug"·title="escape_debug">escape_debug</a></li><li><a·href="#method.escape_default"·title="escape_default">escape_default</a></li><li><a·href="#method.escape_unicode"·title="escape_unicode">escape_unicode</a></li><li><a·href="#method.find"·title="find">find</a></li><li><a·href="#method.floor_char_boundary"·title="floor_char_boundary">floor_char_boundary</a></li><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.get_unchecked"·title="get_unchecked">get_unchecked</a></li><li><a·href="#method.get_unchecked_mut"·title="get_unchecked_mut">get_unchecked_mut</a></li><li><a·href="#method.is_ascii"·title="is_ascii">is_ascii</a></li><li><a·href="#method.is_char_boundary"·title="is_char_boundary">is_char_boundary</a></li><li><a·href="#method.is_empty-1"·title="is_empty">is_empty</a></li><li><a·href="#method.len-1"·title="len">len</a></li><li><a·href="#method.lines"·title="lines">lines</a></li><li><a·href="#method.lines_any"·title="lines_any">lines_any</a></li><li><a·href="#method.make_ascii_lowercase"·title="make_ascii_lowercase">make_ascii_lowercase</a></li><li><a·href="#method.make_ascii_uppercase"·title="make_ascii_uppercase">make_ascii_uppercase</a></li><li><a·href="#method.match_indices"·title="match_indices">match_indices</a></li><li><a·href="#method.matches"·title="matches">matches</a></li><li><a·href="#method.parse"·title="parse">parse</a></li><li><a·href="#method.repeat"·title="repeat">repeat</a></li><li><a·href="#method.replace"·title="replace">replace</a></li><li><a·href="#method.replacen"·title="replacen">replacen</a></li><li><a·href="#method.rfind"·title="rfind">rfind</a></li><li><a·href="#method.rmatch_indices"·title="rmatch_indices">rmatch_indices</a></li><li><a·href="#method.rmatches"·title="rmatches">rmatches</a></li><li><a·href="#method.rsplit"·title="rsplit">rsplit</a></li><li><a·href="#method.rsplit_once"·title="rsplit_once">rsplit_once</a></li><li><a·href="#method.rsplit_terminator"·title="rsplit_terminator">rsplit_terminator</a></li><li><a·href="#method.rsplitn"·title="rsplitn">rsplitn</a></li><li><a·href="#method.slice_mut_unchecked"·title="slice_mut_unchecked">slice_mut_unchecked</a></li><li><a·href="#method.slice_unchecked"·title="slice_unchecked">slice_unchecked</a></li><li><a·href="#method.split"·title="split">split</a></li><li><a·href="#method.split_ascii_whitespace"·title="split_ascii_whitespace">split_ascii_whitespace</a></li><li><a·href="#method.split_at"·title="split_at">split_at</a></li><li><a·href="#method.split_at_checked"·title="split_at_checked">split_at_checked</a></li><li><a·href="#method.split_at_mut"·title="split_at_mut">split_at_mut</a></li><li><a·href="#method.split_at_mut_checked"·title="split_at_mut_checked">split_at_mut_checked</a></li><li><a·href="#method.split_inclusive"·title="split_inclusive">split_inclusive</a></li><li><a·href="#method.split_once"·title="split_once">split_once</a></li><li><a·href="#method.split_terminator"·title="split_terminator">split_terminator</a></li><li><a·href="#method.split_whitespace"·title="split_whitespace">split_whitespace</a></li><li><a·href="#method.splitn"·title="splitn">splitn</a></li><li><a·href="#method.starts_with"·title="starts_with">starts_with</a></li><li><a·href="#method.strip_prefix"·title="strip_prefix">strip_prefix</a></li><li><a·href="#method.strip_suffix"·title="strip_suffix">strip_suffix</a></li><li><a·href="#method.substr_range"·title="substr_range">substr_range</a></li><li><a·href="#method.to_ascii_lowercase"·title="to_ascii_lowercase">to_ascii_lowercase</a></li><li><a·href="#method.to_ascii_uppercase"·title="to_ascii_uppercase">to_ascii_uppercase</a></li><li><a·href="#method.to_lowercase"·title="to_lowercase">to_lowercase</a></li><li><a·href="#method.to_uppercase"·title="to_uppercase">to_uppercase</a></li><li><a·href="#method.trim"·title="trim">trim</a></li><li><a·href="#method.trim_ascii"·title="trim_ascii">trim_ascii</a></li><li><a·href="#method.trim_ascii_end"·title="trim_ascii_end">trim_ascii_end</a></li><li><a·href="#method.trim_ascii_start"·title="trim_ascii_start">trim_ascii_start</a></li><li><a·href="#method.trim_end"·title="trim_end">trim_end</a></li><li><a·href="#method.trim_end_matches"·title="trim_end_matches">trim_end_matches</a></li><li><a·href="#method.trim_left"·title="trim_left">trim_left</a></li><li><a·href="#method.trim_left_matches"·title="trim_left_matches">trim_left_matches</a></li><li><a·href="#method.trim_matches"·title="trim_matches">trim_matches</a></li><li><a·href="#method.trim_right"·title="trim_right">trim_right</a></li><li><a·href="#method.trim_right_matches"·title="trim_right_matches">trim_right_matches</a></li><li><a·href="#method.trim_start"·title="trim_start">trim_start</a></li><li><a·href="#method.trim_start_matches"·title="trim_start_matches">trim_start_matches</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Add%3C%26str%3E-for-String"·title="Add&#60;&#38;str&#62;">Add&#60;&#38;str&#62;</a></li><li><a·href="#impl-AddAssign%3C%26str%3E-for-String"·title="AddAssign&#60;&#38;str&#62;">AddAssign&#60;&#38;str&#62;</a></li><li><a·href="#impl-AsMut%3Cstr%3E-for-String"·title="AsMut&#60;str&#62;">AsMut&#60;str&#62;</a></li><li><a·href="#impl-AsRef%3C%5Bu8%5D%3E-for-String"·title="AsRef&#60;[u8]&#62;">AsRef&#60;[u8]&#62;</a></li><li><a·href="#impl-AsRef%3Cstr%3E-for-String"·title="AsRef&#60;str&#62;">AsRef&#60;str&#62;</a></li><li><a·href="#impl-Borrow%3Cstr%3E-for-String"·title="Borrow&#60;str&#62;">Borrow&#60;str&#62;</a></li><li><a·href="#impl-BorrowMut%3Cstr%3E-for-String"·title="BorrowMut&#60;str&#62;">BorrowMut&#60;str&#62;</a></li><li><a·href="#impl-Clone-for-String"·title="Clone">Clone</a></li><li><a·href="#impl-Debug-for-String"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-String"·title="Default">Default</a></li><li><a·href="#impl-Deref-for-String"·title="Deref">Deref</a></li><li><a·href="#impl-DerefMut-for-String"·title="DerefMut">DerefMut</a></li><li><a·href="#impl-DerefPure-for-String"·title="DerefPure">DerefPure</a></li><li><a·href="#impl-Display-for-String"·title="Display">Display</a></li><li><a·href="#impl-Eq-for-String"·title="Eq">Eq</a></li><li><a·href="#impl-Extend%3C%26char%3E-for-String"·title="Extend&#60;&#38;&#39;a·char&#62;">Extend&#60;&#38;&#39;a·char&#62;</a></li><li><a·href="#impl-Extend%3C%26str%3E-for-String"·title="Extend&#60;&#38;&#39;a·str&#62;">Extend&#60;&#38;&#39;a·str&#62;</a></li><li><a·href="#impl-Extend%3CBox%3Cstr,+A%3E%3E-for-String"·title="Extend&#60;Box&#60;str,·A&#62;&#62;">Extend&#60;Box&#60;str,·A&#62;&#62;</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-Extend%3CString%3E-for-String"·title="Extend&#60;String&#62;">Extend&#60;String&#62;</a></li><li><a·href="#impl-Extend%3Cchar%3E-for-String"·title="Extend&#60;char&#62;">Extend&#60;char&#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%26String%3E-for-String"·title="From&#60;&#38;String&#62;">From&#60;&#38;String&#62;</a></li><li><a·href="#impl-From%3C%26mut+str%3E-for-String"·title="From&#60;&#38;mut·str&#62;">From&#60;&#38;mut·str&#62;</a></li><li><a·href="#impl-From%3C%26str%3E-for-String"·title="From&#60;&#38;str&#62;">From&#60;&#38;str&#62;</a></li><li><a·href="#impl-From%3CBox%3Cstr%3E%3E-for-String"·title="From&#60;Box&#60;str&#62;&#62;">From&#60;Box&#60;str&#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%3CString%3E-for-Arc%3Cstr%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cdyn+Error%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cstr%3E"·title="From&#60;String&#62;">From&#60;String&#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%3CString%3E-for-Rc%3Cstr%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CString%3E-for-Vec%3Cu8%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3Cchar%3E-for-String"·title="From&#60;char&#62;">From&#60;char&#62;</a></li><li><a·href="#impl-FromIterator%3C%26char%3E-for-String"·title="FromIterator&#60;&#38;&#39;a·char&#62;">FromIterator&#60;&#38;&#39;a·char&#62;</a></li><li><a·href="#impl-FromIterator%3C%26str%3E-for-String"·title="FromIterator&#60;&#38;&#39;a·str&#62;">FromIterator&#60;&#38;&#39;a·str&#62;</a></li><li><a·href="#impl-FromIterator%3CBox%3Cstr,+A%3E%3E-for-String"·title="FromIterator&#60;Box&#60;str,·A&#62;&#62;">FromIterator&#60;Box&#60;str,·A&#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-Box%3Cstr%3E"·title="FromIterator&#60;String&#62;">FromIterator&#60;String&#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%3CString%3E-for-String"·title="FromIterator&#60;String&#62;">FromIterator&#60;String&#62;</a></li><li><a·href="#impl-FromIterator%3Cchar%3E-for-String"·title="FromIterator&#60;char&#62;">FromIterator&#60;char&#62;</a></li><li><a·href="#impl-FromStr-for-String"·title="FromStr">FromStr</a></li><li><a·href="#impl-Hash-for-String"·title="Hash">Hash</a></li><li><a·href="#impl-Index%3CI%3E-for-String"·title="Index&#60;I&#62;">Index&#60;I&#62;</a></li><li><a·href="#impl-IndexMut%3CI%3E-for-String"·title="IndexMut&#60;I&#62;">IndexMut&#60;I&#62;</a></li><li><a·href="#impl-Ord-for-String"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-String"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialEq%3C%26str%3E-for-String"·title="PartialEq&#60;&#38;&#39;a·str&#62;">PartialEq&#60;&#38;&#39;a·str&#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%3CString%3E-for-%26str"·title="PartialEq&#60;String&#62;">PartialEq&#60;String&#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%3CString%3E-for-str"·title="PartialEq&#60;String&#62;">PartialEq&#60;String&#62;</a></li><li><a·href="#impl-PartialEq%3Cstr%3E-for-String"·title="PartialEq&#60;str&#62;">PartialEq&#60;str&#62;</a></li><li><a·href="#impl-PartialOrd-for-String"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-Pattern-for-%26String"·title="Pattern">Pattern</a></li><li><a·href="#impl-StructuralPartialEq-for-String"·title="StructuralPartialEq">StructuralPartialEq</a></li><li><a·href="#impl-Write-for-String"·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-Freeze-for-String"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-String"·title="RefUnwindSafe">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-String"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-String"·title="Sync">Sync</a></li><li><a·href="#impl-Unpin-for-String"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-String"·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">String</span><button·id="copy-path"·title="Copy·item·path·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#362-364">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·String·{·<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·UTF-8–encoded,·growable·string.</p>
2 <p><code>String</code>·is·the·most·common·string·type.·It·has·ownership·over·the·contents2 <p><code>String</code>·is·the·most·common·string·type.·It·has·ownership·over·the·contents
3 of·the·string,·stored·in·a·heap-allocated·buffer·(see·<a·href="#representation">Representation</a>).3 of·the·string,·stored·in·a·heap-allocated·buffer·(see·<a·href="#representation">Representation</a>).
4 It·is·closely·related·to·its·borrowed·counterpart,·the·primitive·<a·href="../../core/primitive.str.html"·title="str"><code>str</code></a>.</p>4 It·is·closely·related·to·its·borrowed·counterpart,·the·primitive·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="str"><code>str</code></a>.</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>You·can·create·a·<code>String</code>·from·<a·href="../../core/primitive.str.html"·title="&amp;str">a·literal·string</a>·with·<a·href="../../core/convert/trait.From.html#tymethod.from"·title="associated·function·core::convert::From::from"><code>String::from</code></a>:</p>6 <p>You·can·create·a·<code>String</code>·from·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="&amp;str">a·literal·string</a>·with·<a·href="https://doc.rust-lang.org/1.83.0/core/convert/trait.From.html#tymethod.from"·title="associated·function·core::convert::From::from"><code>String::from</code></a>:</p>
  
7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>hello·=·String::from(<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++++let+hello+=+String::from(%22Hello,+world!%22);%0A%7D&amp;edition=2021"></a></div>7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>hello·=·String::from(<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++++let+hello+=+String::from(%22Hello,+world!%22);%0A%7D&amp;edition=2021"></a></div>
8 <p>You·can·append·a·<a·href="../../core/primitive.char.html"·title="primitive·char"><code>char</code></a>·to·a·<code>String</code>·with·the·<a·href="struct.String.html#method.push"·title="method·alloc::string::String::push"><code>push</code></a>·method,·and8 <p>You·can·append·a·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.char.html"·title="primitive·char"><code>char</code></a>·to·a·<code>String</code>·with·the·<a·href="struct.String.html#method.push"·title="method·alloc::string::String::push"><code>push</code></a>·method,·and
9 append·a·<a·href="../../core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>·with·the·<a·href="struct.String.html#method.push_str"·title="method·alloc::string::String::push_str"><code>push_str</code></a>·method:</p>9 append·a·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>·with·the·<a·href="struct.String.html#method.push_str"·title="method·alloc::string::String::push_str"><code>push_str</code></a>·method:</p>
  
10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>hello·=·String::from(<span·class="string">"Hello,·"</span>);10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>hello·=·String::from(<span·class="string">"Hello,·"</span>);
  
11 hello.push(<span·class="string">'w'</span>);11 hello.push(<span·class="string">'w'</span>);
12 hello.push_str(<span·class="string">"orld!"</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+hello+=+String::from(%22Hello,+%22);%0A++++%0A++++hello.push('w');%0A++++hello.push_str(%22orld!%22);%0A%7D&amp;edition=2021"></a></div>12 hello.push_str(<span·class="string">"orld!"</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+hello+=+String::from(%22Hello,+%22);%0A++++%0A++++hello.push('w');%0A++++hello.push_str(%22orld!%22);%0A%7D&amp;edition=2021"></a></div>
13 <p>If·you·have·a·vector·of·UTF-8·bytes,·you·can·create·a·<code>String</code>·from·it·with13 <p>If·you·have·a·vector·of·UTF-8·bytes,·you·can·create·a·<code>String</code>·from·it·with
14 the·<a·href="struct.String.html#method.from_utf8"·title="associated·function·alloc::string::String::from_utf8"><code>from_utf8</code></a>·method:</p>14 the·<a·href="struct.String.html#method.from_utf8"·title="associated·function·alloc::string::String::from_utf8"><code>from_utf8</code></a>·method:</p>
Offset 49, 28 lines modifiedOffset 49, 28 lines modified
49 <span·class="kw">let·</span>s·=·[<span·class="string">'💖'</span>,·<span·class="string">'💖'</span>,·<span·class="string">'💖'</span>,·<span·class="string">'💖'</span>,·<span·class="string">'💖'</span>];49 <span·class="kw">let·</span>s·=·[<span·class="string">'💖'</span>,·<span·class="string">'💖'</span>,·<span·class="string">'💖'</span>,·<span·class="string">'💖'</span>,·<span·class="string">'💖'</span>];
50 <span·class="kw">let·</span>size:·usize·=·s.into_iter().map(|c|·mem::size_of_val(<span·class="kw-2">&amp;</span>c)).sum();50 <span·class="kw">let·</span>size:·usize·=·s.into_iter().map(|c|·mem::size_of_val(<span·class="kw-2">&amp;</span>c)).sum();
51 <span·class="macro">assert_eq!</span>(size,·<span·class="number">20</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::mem;%0A++++%0A++++//+%60s%60+is+ASCII+which+represents+each+%60char%60+as+one+byte%0A++++let+s+=+%22hello%22;%0A++++assert_eq!(s.len(),+5);%0A++++%0A++++//+A+%60char%60+array+with+the+same+contents+would+be+longer+because%0A++++//+every+%60char%60+is+four+bytes%0A++++let+s+=+%5B'h',+'e',+'l',+'l',+'o'%5D;%0A++++let+size:+usize+=+s.into_iter().map(%7Cc%7C+mem::size_of_val(%26c)).sum();%0A++++assert_eq!(size,+20);%0A++++%0A++++//+However,+for+non-ASCII+strings,+the+difference+will+be+smaller%0A++++//+and+sometimes+they+are+the+same%0A++++let+s+=+%22%F0%9F%92%96%F0%9F%92%96%F0%9F%92%96%F0%9F%92%96%F0%9F%92%96%22;%0A++++assert_eq!(s.len(),+20);%0A++++%0A++++let+s+=+%5B'%F0%9F%92%96',+'%F0%9F%92%96',+'%F0%9F%92%96',+'%F0%9F%92%96',+'%F0%9F%92%96'%5D;%0A++++let+size:+usize+=+s.into_iter().map(%7Cc%7C+mem::size_of_val(%26c)).sum();%0A++++assert_eq!(size,+20);%0A%7D&amp;edition=2021"></a></div>51 <span·class="macro">assert_eq!</span>(size,·<span·class="number">20</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::mem;%0A++++%0A++++//+%60s%60+is+ASCII+which+represents+each+%60char%60+as+one+byte%0A++++let+s+=+%22hello%22;%0A++++assert_eq!(s.len(),+5);%0A++++%0A++++//+A+%60char%60+array+with+the+same+contents+would+be+longer+because%0A++++//+every+%60char%60+is+four+bytes%0A++++let+s+=+%5B'h',+'e',+'l',+'l',+'o'%5D;%0A++++let+size:+usize+=+s.into_iter().map(%7Cc%7C+mem::size_of_val(%26c)).sum();%0A++++assert_eq!(size,+20);%0A++++%0A++++//+However,+for+non-ASCII+strings,+the+difference+will+be+smaller%0A++++//+and+sometimes+they+are+the+same%0A++++let+s+=+%22%F0%9F%92%96%F0%9F%92%96%F0%9F%92%96%F0%9F%92%96%F0%9F%92%96%22;%0A++++assert_eq!(s.len(),+20);%0A++++%0A++++let+s+=+%5B'%F0%9F%92%96',+'%F0%9F%92%96',+'%F0%9F%92%96',+'%F0%9F%92%96',+'%F0%9F%92%96'%5D;%0A++++let+size:+usize+=+s.into_iter().map(%7Cc%7C+mem::size_of_val(%26c)).sum();%0A++++assert_eq!(size,+20);%0A%7D&amp;edition=2021"></a></div>
52 <p>This·raises·interesting·questions·as·to·how·<code>s[i]</code>·should·work.52 <p>This·raises·interesting·questions·as·to·how·<code>s[i]</code>·should·work.
53 What·should·<code>i</code>·be·here?·Several·options·include·byte·indices·and53 What·should·<code>i</code>·be·here?·Several·options·include·byte·indices·and
54 <code>char</code>·indices·but,·because·of·UTF-8·encoding,·only·byte·indices54 <code>char</code>·indices·but,·because·of·UTF-8·encoding,·only·byte·indices
55 would·provide·constant·time·indexing.·Getting·the·<code>i</code>th·<code>char</code>,·for55 would·provide·constant·time·indexing.·Getting·the·<code>i</code>th·<code>char</code>,·for
56 example,·is·available·using·<a·href="../../core/primitive.str.html#method.chars"·title="method·str::chars"><code>chars</code></a>:</p>56 example,·is·available·using·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.chars"·title="method·str::chars"><code>chars</code></a>:</p>
  
57 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s·=·<span·class="string">"hello"</span>;57 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s·=·<span·class="string">"hello"</span>;
58 <span·class="kw">let·</span>third_character·=·s.chars().nth(<span·class="number">2</span>);58 <span·class="kw">let·</span>third_character·=·s.chars().nth(<span·class="number">2</span>);
59 <span·class="macro">assert_eq!</span>(third_character,·<span·class="prelude-val">Some</span>(<span·class="string">'l'</span>));59 <span·class="macro">assert_eq!</span>(third_character,·<span·class="prelude-val">Some</span>(<span·class="string">'l'</span>));
  
60 <span·class="kw">let·</span>s·=·<span·class="string">"💖💖💖💖💖"</span>;60 <span·class="kw">let·</span>s·=·<span·class="string">"💖💖💖💖💖"</span>;
61 <span·class="kw">let·</span>third_character·=·s.chars().nth(<span·class="number">2</span>);61 <span·class="kw">let·</span>third_character·=·s.chars().nth(<span·class="number">2</span>);
62 <span·class="macro">assert_eq!</span>(third_character,·<span·class="prelude-val">Some</span>(<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+s+=+%22hello%22;%0A++++let+third_character+=+s.chars().nth(2);%0A++++assert_eq!(third_character,+Some('l'));%0A++++%0A++++let+s+=+%22%F0%9F%92%96%F0%9F%92%96%F0%9F%92%96%F0%9F%92%96%F0%9F%92%96%22;%0A++++let+third_character+=+s.chars().nth(2);%0A++++assert_eq!(third_character,+Some('%F0%9F%92%96'));%0A%7D&amp;edition=2021"></a></div>62 <span·class="macro">assert_eq!</span>(third_character,·<span·class="prelude-val">Some</span>(<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+s+=+%22hello%22;%0A++++let+third_character+=+s.chars().nth(2);%0A++++assert_eq!(third_character,+Some('l'));%0A++++%0A++++let+s+=+%22%F0%9F%92%96%F0%9F%92%96%F0%9F%92%96%F0%9F%92%96%F0%9F%92%96%22;%0A++++let+third_character+=+s.chars().nth(2);%0A++++assert_eq!(third_character,+Some('%F0%9F%92%96'));%0A%7D&amp;edition=2021"></a></div>
63 <p>Next,·what·should·<code>s[i]</code>·return?·Because·indexing·returns·a·reference63 <p>Next,·what·should·<code>s[i]</code>·return?·Because·indexing·returns·a·reference
64 to·underlying·data·it·could·be·<code>&amp;u8</code>,·<code>&amp;[u8]</code>,·or·something·else·similar.64 to·underlying·data·it·could·be·<code>&amp;u8</code>,·<code>&amp;[u8]</code>,·or·something·else·similar.
65 Since·we’re·only·providing·one·index,·<code>&amp;u8</code>·makes·the·most·sense·but·that65 Since·we’re·only·providing·one·index,·<code>&amp;u8</code>·makes·the·most·sense·but·that
66 might·not·be·what·the·user·expects·and·can·be·explicitly·achieved·with66 might·not·be·what·the·user·expects·and·can·be·explicitly·achieved·with
67 <a·href="../../core/primitive.str.html#method.as_bytes"·title="method·str::as_bytes"><code>as_bytes()</code></a>:</p>67 <a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.as_bytes"·title="method·str::as_bytes"><code>as_bytes()</code></a>:</p>
  
68 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·The·first·byte·is·104·-·the·byte·value·of·`'h'`68 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·The·first·byte·is·104·-·the·byte·value·of·`'h'`
69 </span><span·class="kw">let·</span>s·=·<span·class="string">"hello"</span>;69 </span><span·class="kw">let·</span>s·=·<span·class="string">"hello"</span>;
70 <span·class="macro">assert_eq!</span>(s.as_bytes()[<span·class="number">0</span>],·<span·class="number">104</span>);70 <span·class="macro">assert_eq!</span>(s.as_bytes()[<span·class="number">0</span>],·<span·class="number">104</span>);
71 <span·class="comment">//·or71 <span·class="comment">//·or
72 </span><span·class="macro">assert_eq!</span>(s.as_bytes()[<span·class="number">0</span>],·<span·class="string">b'h'</span>);72 </span><span·class="macro">assert_eq!</span>(s.as_bytes()[<span·class="number">0</span>],·<span·class="string">b'h'</span>);
  
Offset 84, 37 lines modifiedOffset 84, 37 lines modified
  
84 <span·class="comment">//·The·following·will·not·compile!84 <span·class="comment">//·The·following·will·not·compile!
85 </span><span·class="macro">println!</span>(<span·class="string">"The·first·letter·of·s·is·{}"</span>,·s[<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+s+=+%22hello%22;%0A++++%0A++++//+The+following+will+not+compile!%0A++++println!(%22The+first+letter+of+s+is+%7B%7D%22,+s%5B0%5D);%0A%7D&amp;edition=2021"></a></div>85 </span><span·class="macro">println!</span>(<span·class="string">"The·first·letter·of·s·is·{}"</span>,·s[<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+s+=+%22hello%22;%0A++++%0A++++//+The+following+will+not+compile!%0A++++println!(%22The+first+letter+of+s+is+%7B%7D%22,+s%5B0%5D);%0A%7D&amp;edition=2021"></a></div>
86 <p>It·is·more·clear,·however,·how·<code>&amp;s[i..j]</code>·should·work·(that·is,86 <p>It·is·more·clear,·however,·how·<code>&amp;s[i..j]</code>·should·work·(that·is,
87 indexing·with·a·range).·It·should·accept·byte·indices·(to·be·constant-time)87 indexing·with·a·range).·It·should·accept·byte·indices·(to·be·constant-time)
88 and·return·a·<code>&amp;str</code>·which·is·UTF-8·encoded.·This·is·also·called·“string·slicing”.88 and·return·a·<code>&amp;str</code>·which·is·UTF-8·encoded.·This·is·also·called·“string·slicing”.
89 Note·this·will·panic·if·the·byte·indices·provided·are·not·character89 Note·this·will·panic·if·the·byte·indices·provided·are·not·character
90 boundaries·-·see·<a·href="../../core/primitive.str.html#method.is_char_boundary"·title="method·str::is_char_boundary"><code>is_char_boundary</code></a>·for·more·details.·See·the·implementations90 boundaries·-·see·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.is_char_boundary"·title="method·str::is_char_boundary"><code>is_char_boundary</code></a>·for·more·details.·See·the·implementations
91 for·<a·href="../slice/trait.SliceIndex.html"·title="trait·alloc::slice::SliceIndex"><code>SliceIndex&lt;str&gt;</code></a>·for·more·details·on·string·slicing.·For·a·non-panicking91 for·<a·href="../slice/trait.SliceIndex.html"·title="trait·alloc::slice::SliceIndex"><code>SliceIndex&lt;str&gt;</code></a>·for·more·details·on·string·slicing.·For·a·non-panicking
92 version·of·string·slicing,·see·<a·href="../../core/primitive.str.html#method.get"·title="method·str::get"><code>get</code></a>.</p>92 version·of·string·slicing,·see·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.get"·title="method·str::get"><code>get</code></a>.</p>
93 <p>The·<a·href="../../core/primitive.str.html#method.bytes"·title="method·str::bytes"><code>bytes</code></a>·and·<a·href="../../core/primitive.str.html#method.chars"·title="method·str::chars"><code>chars</code></a>·methods·return·iterators·over·the·bytes·and93 <p>The·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.bytes"·title="method·str::bytes"><code>bytes</code></a>·and·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.chars"·title="method·str::chars"><code>chars</code></a>·methods·return·iterators·over·the·bytes·and
94 codepoints·of·the·string,·respectively.·To·iterate·over·codepoints·along94 codepoints·of·the·string,·respectively.·To·iterate·over·codepoints·along
95 with·byte·indices,·use·<a·href="../../core/primitive.str.html#method.char_indices"·title="method·str::char_indices"><code>char_indices</code></a>.</p>95 with·byte·indices,·use·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.char_indices"·title="method·str::char_indices"><code>char_indices</code></a>.</p>
96 <h2·id="deref"><a·class="doc-anchor"·href="#deref">§</a>Deref</h2>96 <h2·id="deref"><a·class="doc-anchor"·href="#deref">§</a>Deref</h2>
97 <p><code>String</code>·implements·<code><a·href="../../core/ops/deref/trait.Deref.html"·title="ops::Deref">Deref</a>&lt;Target·=·<a·href="../../core/primitive.str.html"·title="str">str</a>&gt;</code>,·and·so·inherits·all·of·<a·href="../../core/primitive.str.html"·title="str"><code>str</code></a>’s97 <p><code>String</code>·implements·<code><a·href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.Deref.html"·title="ops::Deref">Deref</a>&lt;Target·=·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="str">str</a>&gt;</code>,·and·so·inherits·all·of·<a·href="https://doc.rust-l[·...·truncated·by·diffoscope;·len:·14,·SHA:·1e0187c876907ab0ef21a560aeba8833d8f29fa7374b1d248490cd920f775c2b·...·]/core/primitive.str.html"·title="str"><code>str</code></a>’s
98 methods.·In·addition,·this·means·that·you·can·pass·a·<code>String</code>·to·a98 methods.·In·addition,·this·means·that·you·can·pass·a·<code>String</code>·to·a
99 function·which·takes·a·<a·href="../../core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>·by·using·an·ampersand·(<code>&amp;</code>):</p>99 function·which·takes·a·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>·by·using·an·ampersand·(<code>&amp;</code>):</p>
  
100 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">fn·</span>takes_str(s:·<span·class="kw-2">&amp;</span>str)·{·}100 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">fn·</span>takes_str(s:·<span·class="kw-2">&amp;</span>str)·{·}
  
101 <span·class="kw">let·</span>s·=·String::from(<span·class="string">"Hello"</span>);101 <span·class="kw">let·</span>s·=·String::from(<span·class="string">"Hello"</span>);
  
102 takes_str(<span·class="kw-2">&amp;</span>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++++fn+takes_str(s:+%26str)+%7B+%7D%0A++++%0A++++let+s+=+String::from(%22Hello%22);%0A++++%0A++++takes_str(%26s);%0A%7D&amp;edition=2021"></a></div>102 takes_str(<span·class="kw-2">&amp;</span>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++++fn+takes_str(s:+%26str)+%7B+%7D%0A++++%0A++++let+s+=+String::from(%22Hello%22);%0A++++%0A++++takes_str(%26s);%0A%7D&amp;edition=2021"></a></div>
103 <p>This·will·create·a·<a·href="../../core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>·from·the·<code>String</code>·and·pass·it·in.·This103 <p>This·will·create·a·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>·from·the·<code>String</code>·and·pass·it·in.·This
104 conversion·is·very·inexpensive,·and·so·generally,·functions·will·accept104 conversion·is·very·inexpensive,·and·so·generally,·functions·will·accept
105 <a·href="../../core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>s·as·arguments·unless·they·need·a·<code>String</code>·for·some·specific105 <a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>s·as·arguments·unless·they·need·a·<code>String</code>·for·some·specific
106 reason.</p>106 reason.</p>
107 <p>In·certain·cases·Rust·doesn’t·have·enough·information·to·make·this107 <p>In·certain·cases·Rust·doesn’t·have·enough·information·to·make·this
108 conversion,·known·as·<a·href="../../core/ops/deref/trait.Deref.html"·title="ops::Deref"><code>Deref</code></a>·coercion.·In·the·following·example·a·string108 conversion,·known·as·<a·href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.Deref.html"·title="ops::Deref"><code>Deref</code></a>·coercion.·In·the·following·example·a·string
109 slice·<a·href="../../core/primitive.str.html"·title="&amp;str"><code>&amp;'a·str</code></a>·implements·the·trait·<code>TraitExample</code>,·and·the·function109 slice·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="&amp;str"><code>&amp;'a·str</code></a>·implements·the·trait·<code>TraitExample</code>,·and·the·function
110 <code>example_func</code>·takes·anything·that·implements·the·trait.·In·this·case·Rust110 <code>example_func</code>·takes·anything·that·implements·the·trait.·In·this·case·Rust
111 would·need·to·make·two·implicit·conversions,·which·Rust·doesn’t·have·the111 would·need·to·make·two·implicit·conversions,·which·Rust·doesn’t·have·the
112 means·to·do.·For·that·reason,·the·following·example·will·not·compile.</p>112 means·to·do.·For·that·reason,·the·following·example·will·not·compile.</p>
  
113 <div·class="example-wrap·compile_fail"><a·href="#"·class="tooltip"·title="This·example·deliberately·fails·to·compile">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="kw">trait·</span>TraitExample·{}113 <div·class="example-wrap·compile_fail"><a·href="#"·class="tooltip"·title="This·example·deliberately·fails·to·compile">ⓘ</a><pre·class="rust·rust-example-rendered"><code><span·class="kw">trait·</span>TraitExample·{}
  
114 <span·class="kw">impl</span>&lt;<span·class="lifetime">'a</span>&gt;·TraitExample·<span·class="kw">for·</span><span·class="kw-2">&amp;</span><span·class="lifetime">'a·</span>str·{}114 <span·class="kw">impl</span>&lt;<span·class="lifetime">'a</span>&gt;·TraitExample·<span·class="kw">for·</span><span·class="kw-2">&amp;</span><span·class="lifetime">'a·</span>str·{}
Offset 125, 25 lines modifiedOffset 125, 25 lines modified
125 example_func(<span·class="kw-2">&amp;</span>example_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++++trait+TraitExample+%7B%7D%0A++++%0A++++impl%3C'a%3E+TraitExample+for+%26'a+str+%7B%7D%0A++++%0A++++fn+example_func%3CA:+TraitExample%3E(example_arg:+A)+%7B%7D%0A++++%0A++++let+example_string+=+String::from(%22example_string%22);%0A++++example_func(%26example_string);%0A%7D&amp;edition=2021"></a></div>125 example_func(<span·class="kw-2">&amp;</span>example_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++++trait+TraitExample+%7B%7D%0A++++%0A++++impl%3C'a%3E+TraitExample+for+%26'a+str+%7B%7D%0A++++%0A++++fn+example_func%3CA:+TraitExample%3E(example_arg:+A)+%7B%7D%0A++++%0A++++let+example_string+=+String::from(%22example_string%22);%0A++++example_func(%26example_string);%0A%7D&amp;edition=2021"></a></div>
126 <p>There·are·two·options·that·would·work·instead.·The·first·would·be·to126 <p>There·are·two·options·that·would·work·instead.·The·first·would·be·to
127 change·the·line·<code>example_func(&amp;example_string);</code>·to127 change·the·line·<code>example_func(&amp;example_string);</code>·to
128 <code>example_func(example_string.as_str());</code>,·using·the·method·<a·href="struct.String.html#method.as_str"·title="method·alloc::string::String::as_str"><code>as_str()</code></a>128 <code>example_func(example_string.as_str());</code>,·using·the·method·<a·href="struct.String.html#method.as_str"·title="method·alloc::string::String::as_str"><code>as_str()</code></a>
129 to·explicitly·extract·the·string·slice·containing·the·string.·The·second129 to·explicitly·extract·the·string·slice·containing·the·string.·The·second
130 way·changes·<code>example_func(&amp;example_string);</code>·to130 way·changes·<code>example_func(&amp;example_string);</code>·to
131 <code>example_func(&amp;*example_string);</code>.·In·this·case·we·are·dereferencing·a131 <code>example_func(&amp;*example_string);</code>.·In·this·case·we·are·dereferencing·a
132 <code>String</code>·to·a·<a·href="../../core/primitive.str.html"·title="str"><code>str</code></a>,·then·referencing·the·<a·href="../../core/primitive.str.html"·title="str"><code>str</code></a>·back·to132 <code>String</code>·to·a·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="str"><code>str</code></a>,·then·referencing·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="str"><code>str</code></a>·back·to
133 <a·href="../../core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>.·The·second·way·is·more·idiomatic,·however·both·work·to·do·the133 <a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>.·The·second·way·is·more·idiomatic,·however·both·work·to·do·the
134 conversion·explicitly·rather·than·relying·on·the·implicit·conversion.</p>134 conversion·explicitly·rather·than·relying·on·the·implicit·conversion.</p>
135 <h2·id="representation"><a·class="doc-anchor"·href="#representation">§</a>Representation</h2>135 <h2·id="representation"><a·class="doc-anchor"·href="#representation">§</a>Representation</h2>
136 <p>A·<code>String</code>·is·made·up·of·three·components:·a·pointer·to·some·bytes,·a136 <p>A·<code>String</code>·is·made·up·of·three·components:·a·pointer·to·some·bytes,·a
137 length,·and·a·capacity.·The·pointer·points·to·the·internal·buffer·which·<code>String</code>137 length,·and·a·capacity.·The·pointer·points·to·the·internal·buffer·which·<code>String</code>
138 uses·to·store·its·data.·The·length·is·the·number·of·bytes·currently·stored138 uses·to·store·its·data.·The·length·is·the·number·of·bytes·currently·stored
139 in·the·buffer,·and·the·capacity·is·the·size·of·the·buffer·in·bytes.·As·such,139 in·the·buffer,·and·the·capacity·is·the·size·of·the·buffer·in·bytes.·As·such,
140 the·length·will·always·be·less·than·or·equal·to·the·capacity.</p>140 the·length·will·always·be·less·than·or·equal·to·the·capacity.</p>
141 <p>This·buffer·is·always·stored·on·the·heap.</p>141 <p>This·buffer·is·always·stored·on·the·heap.</p>
142 <p>You·can·look·at·these·with·the·<a·href="../../core/primitive.str.html#method.as_ptr"·title="method·str::as_ptr"><code>as_ptr</code></a>,·<a·href="struct.String.html#method.len"·title="method·alloc::string::String::len"><code>len</code></a>,·and·<a·href="struct.String.html#method.capacity"·title="method·alloc::string::String::capacity"><code>capacity</code></a>142 <p>You·can·look·at·these·with·the·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.str.html#method.as_ptr"·title="method·str::as_ptr"><code>as_ptr</code></a>,·<a·href="struct.String.html#method.len"·title="method·alloc::string::String::len"><code>len</code></a>,·and·<a·href="struct.String.html#method.capacity"·title="method·alloc::string::String::capacity"><code>capacity</code></a>
143 methods:</p>143 methods:</p>
  
144 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::mem;144 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::mem;
  
145 <span·class="kw">let·</span>story·=·String::from(<span·class="string">"Once·upon·a·time..."</span>);145 <span·class="kw">let·</span>story·=·String::from(<span·class="string">"Once·upon·a·time..."</span>);
  
146 <span·class="comment">//·Prevent·automatically·dropping·the·String's·data146 <span·class="comment">//·Prevent·automatically·dropping·the·String's·data
Offset 205, 15 lines modifiedOffset 205, 15 lines modified
205 buffer.·While·that·means·that·this·initial·operation·is·very205 buffer.·While·that·means·that·this·initial·operation·is·very
206 inexpensive,·it·may·cause·excessive·allocation·later·when·you·add206 inexpensive,·it·may·cause·excessive·allocation·later·when·you·add
207 data.·If·you·have·an·idea·of·how·much·data·the·<code>String</code>·will·hold,207 data.·If·you·have·an·idea·of·how·much·data·the·<code>String</code>·will·hold,
208 consider·the·<a·href="struct.String.html#method.with_capacity"·title="associated·function·alloc::string::String::with_capacity"><code>with_capacity</code></a>·method·to·prevent·excessive208 consider·the·<a·href="struct.String.html#method.with_capacity"·title="associated·function·alloc::string::String::with_capacity"><code>with_capacity</code></a>·method·to·prevent·excessive
209 re-allocation.</p>209 re-allocation.</p>
210 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>210 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
211 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s·=·String::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+s+=+String::new();%0A%7D&amp;edition=2021"></a></div>211 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s·=·String::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+s+=+String::new();%0A%7D&amp;edition=2021"></a></div>
212 </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/string.rs.html#489-491">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.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·empty·<code>String</code>·with·at·least·the·specified·capacity.</p>212 </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/string.rs.html#489-491">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.83.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·empty·<code>String</code>·with·at·least·the·specified·capacity.</p>
213 <p><code>String</code>s·have·an·internal·buffer·to·hold·their·data.·The·capacity·is213 <p><code>String</code>s·have·an·internal·buffer·to·hold·their·data.·The·capacity·is
214 the·length·of·that·buffer,·and·can·be·queried·with·the·<a·href="struct.String.html#method.capacity"·title="method·alloc::string::String::capacity"><code>capacity</code></a>214 the·length·of·that·buffer,·and·can·be·queried·with·the·<a·href="struct.String.html#method.capacity"·title="method·alloc::string::String::capacity"><code>capacity</code></a>
215 method.·This·method·creates·an·empty·<code>String</code>,·but·one·with·an·initial215 method.·This·method·creates·an·empty·<code>String</code>,·but·one·with·an·initial
216 buffer·that·can·hold·at·least·<code>capacity</code>·bytes.·This·is·useful·when·you216 buffer·that·can·hold·at·least·<code>capacity</code>·bytes.·This·is·useful·when·you
217 may·be·appending·a·bunch·of·data·to·the·<code>String</code>,·reducing·the·number·of217 may·be·appending·a·bunch·of·data·to·the·<code>String</code>,·reducing·the·number·of
218 reallocations·it·needs·to·do.</p>218 reallocations·it·needs·to·do.</p>
219 <p>If·the·given·capacity·is·<code>0</code>,·no·allocation·will·occur,·and·this·method219 <p>If·the·given·capacity·is·<code>0</code>,·no·allocation·will·occur,·and·this·method
Offset 230, 35 lines modifiedOffset 230, 35 lines modified
Max diff block lines reached; 767005/809442 bytes (94.76%) of diff not shown.
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#2661">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#2661">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#2672-2686">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>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#2672-2686">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.83.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>
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.32 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#2625">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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (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#2625">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·type·ParseError·=·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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:·4e9de04477626ce3100109914062c0db3f64661554bf5f986f1ee95a65299a26·...·]/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>
1.86 KB
./usr/share/doc/rust-doc/html/alloc/sync/index.html
    
Offset 2, 8 lines modifiedOffset 2, 8 lines modified
2 <p>See·the·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc&lt;T&gt;</code></a>·documentation·for·more·details.</p>2 <p>See·the·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc&lt;T&gt;</code></a>·documentation·for·more·details.</p>
3 <p><strong>Note</strong>:·This·module·is·only·available·on·platforms·that·support·atomic3 <p><strong>Note</strong>:·This·module·is·only·available·on·platforms·that·support·atomic
4 loads·and·stores·of·pointers.·This·may·be·detected·at·compile·time·using4 loads·and·stores·of·pointers.·This·may·be·detected·at·compile·time·using
5 <code>#[cfg(target_has_atomic·=·"ptr")]</code>.</p>5 <code>#[cfg(target_has_atomic·=·"ptr")]</code>.</p>
6 </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.Arc.html"·title="struct·alloc::sync::Arc">Arc</a></div><div·class="desc·docblock-short">A·thread-safe·reference-counting·pointer.·‘Arc’·stands·for·‘Atomically6 </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.Arc.html"·title="struct·alloc::sync::Arc">Arc</a></div><div·class="desc·docblock-short">A·thread-safe·reference-counting·pointer.·‘Arc’·stands·for·‘Atomically
7 Reference·Counted’.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a></div><div·class="desc·docblock-short"><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·the7 Reference·Counted’.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a></div><div·class="desc·docblock-short"><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
8 managed·allocation.·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>8 managed·allocation.·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>
9 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>.</div></li></ul></section></div></main></body></html>9 pointer,·which·returns·an·<code><a·href="https://doc.rust-lang.org/1.83.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>.</div></li></ul></section></div></main></body></html>
395 KB
./usr/share/doc/rust-doc/html/alloc/sync/struct.Arc.html
    
Offset 1, 49 lines modifiedOffset 1, 49 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·thread-safe·reference-counting·pointer.·‘Arc’·stands·for·‘Atomically·Reference·Counted’."><title>Arc·in·alloc::sync·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Arc</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#thread-safety"·title="Thread·Safety">Thread·Safety</a></li><li><a·href="#breaking-cycles-with-weak"·title="Breaking·cycles·with·`Weak`">Breaking·cycles·with·<code>Weak</code></a></li><li><a·href="#cloning-references"·title="Cloning·references">Cloning·references</a><ul><li><a·href="#deref-behavior"·title="`Deref`·behavior"><code>Deref</code>·behavior</a></li></ul></li><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.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_pin"·title="try_pin">try_pin</a></li><li><a·href="#method.try_pin_in"·title="try_pin_in">try_pin_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-AsRef%3CT%3E-for-Arc%3CT,+A%3E"·title="AsRef&#60;T&#62;">AsRef&#60;T&#62;</a></li><li><a·href="#impl-Borrow%3CT%3E-for-Arc%3CT,+A%3E"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-Clone-for-Arc%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CArc%3CU,+A%3E%3E-for-Arc%3CT,+A%3E"·title="CoerceUnsized&#60;Arc&#60;U,·A&#62;&#62;">CoerceUnsized&#60;Arc&#60;U,·A&#62;&#62;</a></li><li><a·href="#impl-Debug-for-Arc%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Arc%3C%5BT%5D%3E"·title="Default">Default</a></li><li><a·href="#impl-Default-for-Arc%3CCStr%3E"·title="Default">Default</a></li><li><a·href="#impl-Default-for-Arc%3CT%3E"·title="Default">Default</a></li><li><a·href="#impl-Default-for-Arc%3Cstr%3E"·title="Default">Default</a></li><li><a·href="#impl-Deref-for-Arc%3CT,+A%3E"·title="Deref">Deref</a></li><li><a·href="#impl-DerefPure-for-Arc%3CT,+A%3E"·title="DerefPure">DerefPure</a></li><li><a·href="#impl-DispatchFromDyn%3CArc%3CU%3E%3E-for-Arc%3CT%3E"·title="DispatchFromDyn&#60;Arc&#60;U&#62;&#62;">DispatchFromDyn&#60;Arc&#60;U&#62;&#62;</a></li><li><a·href="#impl-Display-for-Arc%3CT,+A%3E"·title="Display">Display</a></li><li><a·href="#impl-Drop-for-Arc%3CT,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-Eq-for-Arc%3CT,+A%3E"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-Arc%3CT%3E"·title="Error">Error</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Arc%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-Arc%3C%5BT%5D%3E"·title="From&#60;&#38;[T]&#62;">From&#60;&#38;[T]&#62;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Arc%3Cstr%3E"·title="From&#60;&#38;str&#62;">From&#60;&#38;str&#62;</a></li><li><a·href="#impl-From%3CArc%3CW%3E%3E-for-RawWaker"·title="From&#60;Arc&#60;W&#62;&#62;">From&#60;Arc&#60;W&#62;&#62;</a></li><li><a·href="#impl-From%3CArc%3CW%3E%3E-for-Waker"·title="From&#60;Arc&#60;W&#62;&#62;">From&#60;Arc&#60;W&#62;&#62;</a></li><li><a·href="#impl-From%3CArc%3Cstr%3E%3E-for-Arc%3C%5Bu8%5D%3E"·title="From&#60;Arc&#60;str&#62;&#62;">From&#60;Arc&#60;str&#62;&#62;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Arc%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-Arc%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-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%3CString%3E-for-Arc%3Cstr%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-Arc%3CT%3E"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-Arc%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-Arc%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-Arc%3C%5BT%5D%3E"·title="FromIterator&#60;T&#62;">FromIterator&#60;T&#62;</a></li><li><a·href="#impl-Hash-for-Arc%3CT,+A%3E"·title="Hash">Hash</a></li><li><a·href="#impl-Ord-for-Arc%3CT,+A%3E"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-Arc%3CT,+A%3E"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Arc%3CT,+A%3E"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-PinCoerceUnsized-for-Arc%3CT,+A%3E"·title="PinCoerceUnsized">PinCoerceUnsized</a></li><li><a·href="#impl-Pointer-for-Arc%3CT,+A%3E"·title="Pointer">Pointer</a></li><li><a·href="#impl-Send-for-Arc%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Arc%3CT,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-TryFrom%3CArc%3C%5BT%5D,+A%3E%3E-for-Arc%3C%5BT;+N%5D,+A%3E"·title="TryFrom&#60;Arc&#60;[T],·A&#62;&#62;">TryFrom&#60;Arc&#60;[T],·A&#62;&#62;</a></li><li><a·href="#impl-Unpin-for-Arc%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Arc%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-Arc%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Arc%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><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-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>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">Arc</span><button·id="copy-path"·title="Copy·item·path·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#241-248">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Arc&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·thread-safe·reference-counting·pointer.·‘Arc’·stands·for·‘Atomically1 <!DOCTYPE·html><html·lang="en"><head><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·thread-safe·reference-counting·pointer.·‘Arc’·stands·for·‘Atomically·Reference·Counted’."><title>Arc·in·alloc::sync·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»    2024-11-26)» (built»   from»       a»      source»tarball)</div><div·class="sidebar-elems"><section·id="rustdoc-toc"><h2·class="location"><a·href="#">Arc</a></h2><h3><a·href="#">Sections</a></h3><ul·class="block·top-toc"><li><a·href="#thread-safety"·title="Thread·Safety">Thread·Safety</a></li><li><a·href="#breaking-cycles-with-weak"·title="Breaking·cycles·with·`Weak`">Breaking·cycles·with·<code>Weak</code></a></li><li><a·href="#cloning-references"·title="Cloning·references">Cloning·references</a><ul><li><a·href="#deref-behavior"·title="`Deref`·behavior"><code>Deref</code>·behavior</a></li></ul></li><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.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_pin"·title="try_pin">try_pin</a></li><li><a·href="#method.try_pin_in"·title="try_pin_in">try_pin_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-AsRef%3CT%3E-for-Arc%3CT,+A%3E"·title="AsRef&#60;T&#62;">AsRef&#60;T&#62;</a></li><li><a·href="#impl-Borrow%3CT%3E-for-Arc%3CT,+A%3E"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a·href="#impl-Clone-for-Arc%3CT,+A%3E"·title="Clone">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CArc%3CU,+A%3E%3E-for-Arc%3CT,+A%3E"·title="CoerceUnsized&#60;Arc&#60;U,·A&#62;&#62;">CoerceUnsized&#60;Arc&#60;U,·A&#62;&#62;</a></li><li><a·href="#impl-Debug-for-Arc%3CT,+A%3E"·title="Debug">Debug</a></li><li><a·href="#impl-Default-for-Arc%3C%5BT%5D%3E"·title="Default">Default</a></li><li><a·href="#impl-Default-for-Arc%3CCStr%3E"·title="Default">Default</a></li><li><a·href="#impl-Default-for-Arc%3CT%3E"·title="Default">Default</a></li><li><a·href="#impl-Default-for-Arc%3Cstr%3E"·title="Default">Default</a></li><li><a·href="#impl-Deref-for-Arc%3CT,+A%3E"·title="Deref">Deref</a></li><li><a·href="#impl-DerefPure-for-Arc%3CT,+A%3E"·title="DerefPure">DerefPure</a></li><li><a·href="#impl-DispatchFromDyn%3CArc%3CU%3E%3E-for-Arc%3CT%3E"·title="DispatchFromDyn&#60;Arc&#60;U&#62;&#62;">DispatchFromDyn&#60;Arc&#60;U&#62;&#62;</a></li><li><a·href="#impl-Display-for-Arc%3CT,+A%3E"·title="Display">Display</a></li><li><a·href="#impl-Drop-for-Arc%3CT,+A%3E"·title="Drop">Drop</a></li><li><a·href="#impl-Eq-for-Arc%3CT,+A%3E"·title="Eq">Eq</a></li><li><a·href="#impl-Error-for-Arc%3CT%3E"·title="Error">Error</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Arc%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-Arc%3C%5BT%5D%3E"·title="From&#60;&#38;[T]&#62;">From&#60;&#38;[T]&#62;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Arc%3Cstr%3E"·title="From&#60;&#38;str&#62;">From&#60;&#38;str&#62;</a></li><li><a·href="#impl-From%3CArc%3CW%3E%3E-for-RawWaker"·title="From&#60;Arc&#60;W&#62;&#62;">From&#60;Arc&#60;W&#62;&#62;</a></li><li><a·href="#impl-From%3CArc%3CW%3E%3E-for-Waker"·title="From&#60;Arc&#60;W&#62;&#62;">From&#60;Arc&#60;W&#62;&#62;</a></li><li><a·href="#impl-From%3CArc%3Cstr%3E%3E-for-Arc%3C%5Bu8%5D%3E"·title="From&#60;Arc&#60;str&#62;&#62;">From&#60;Arc&#60;str&#62;&#62;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Arc%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-Arc%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-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%3CString%3E-for-Arc%3Cstr%3E"·title="From&#60;String&#62;">From&#60;String&#62;</a></li><li><a·href="#impl-From%3CT%3E-for-Arc%3CT%3E"·title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-Arc%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-Arc%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-Arc%3C%5BT%5D%3E"·title="FromIterator&#60;T&#62;">FromIterator&#60;T&#62;</a></li><li><a·href="#impl-Hash-for-Arc%3CT,+A%3E"·title="Hash">Hash</a></li><li><a·href="#impl-Ord-for-Arc%3CT,+A%3E"·title="Ord">Ord</a></li><li><a·href="#impl-PartialEq-for-Arc%3CT,+A%3E"·title="PartialEq">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Arc%3CT,+A%3E"·title="PartialOrd">PartialOrd</a></li><li><a·href="#impl-PinCoerceUnsized-for-Arc%3CT,+A%3E"·title="PinCoerceUnsized">PinCoerceUnsized</a></li><li><a·href="#impl-Pointer-for-Arc%3CT,+A%3E"·title="Pointer">Pointer</a></li><li><a·href="#impl-Send-for-Arc%3CT,+A%3E"·title="Send">Send</a></li><li><a·href="#impl-Sync-for-Arc%3CT,+A%3E"·title="Sync">Sync</a></li><li><a·href="#impl-TryFrom%3CArc%3C%5BT%5D,+A%3E%3E-for-Arc%3C%5BT;+N%5D,+A%3E"·title="TryFrom&#60;Arc&#60;[T],·A&#62;&#62;">TryFrom&#60;Arc&#60;[T],·A&#62;&#62;</a></li><li><a·href="#impl-Unpin-for-Arc%3CT,+A%3E"·title="Unpin">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Arc%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-Arc%3CT,+A%3E"·title="Freeze">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Arc%3CT,+A%3E"·title="RefUnwindSafe">RefUnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T"·title="Any">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T"·title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><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-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>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">Arc</span><button·id="copy-path"·title="Copy·item·path·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#241-248">source</a>·</span></div><pre·class="rust·item-decl"><code>pub·struct·Arc&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·thread-safe·reference-counting·pointer.·‘Arc’·stands·for·‘Atomically
2 Reference·Counted’.</p>2 Reference·Counted’.</p>
3 <p>The·type·<code>Arc&lt;T&gt;</code>·provides·shared·ownership·of·a·value·of·type·<code>T</code>,3 <p>The·type·<code>Arc&lt;T&gt;</code>·provides·shared·ownership·of·a·value·of·type·<code>T</code>,
4 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·<code>Arc</code>·produces4 allocated·in·the·heap.·Invoking·<a·href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html#tymethod.clone"·title="method·core::clone::Clone::clone"><code>clone</code></a>·on·<code>Arc</code>·produces
5 a·new·<code>Arc</code>·instance,·which·points·to·the·same·allocation·on·the·heap·as·the5 a·new·<code>Arc</code>·instance,·which·points·to·the·same·allocation·on·the·heap·as·the
6 source·<code>Arc</code>,·while·increasing·a·reference·count.·When·the·last·<code>Arc</code>6 source·<code>Arc</code>,·while·increasing·a·reference·count.·When·the·last·<code>Arc</code>
7 pointer·to·a·given·allocation·is·destroyed,·the·value·stored·in·that·allocation·(often7 pointer·to·a·given·allocation·is·destroyed,·the·value·stored·in·that·allocation·(often
8 referred·to·as·“inner·value”)·is·also·dropped.</p>8 referred·to·as·“inner·value”)·is·also·dropped.</p>
9 <p>Shared·references·in·Rust·disallow·mutation·by·default,·and·<code>Arc</code>·is·no9 <p>Shared·references·in·Rust·disallow·mutation·by·default,·and·<code>Arc</code>·is·no
10 exception:·you·cannot·generally·obtain·a·mutable·reference·to·something10 exception:·you·cannot·generally·obtain·a·mutable·reference·to·something
11 inside·an·<code>Arc</code>.·If·you·need·to·mutate·through·an·<code>Arc</code>,·use11 inside·an·<code>Arc</code>.·If·you·need·to·mutate·through·an·<code>Arc</code>,·use
12 <a·href="../../std/sync/struct.Mutex.html"><code>Mutex</code></a>,·<a·href="../../std/sync/struct.RwLock.html"><code>RwLock</code></a>,·or·one·of·the·<a·href="../../core/sync/atomic/index.html"·title="mod·core::sync::atomic"><code>Atomic</code></a>12 <a·href="../../std/sync/struct.Mutex.html"><code>Mutex</code></a>,·<a·href="../../std/sync/struct.RwLock.html"><code>RwLock</code></a>,·or·one·of·the·<a·href="https://doc.rust-lang.org/1.83.0/core/sync/atomic/index.html"·title="mod·core::sync::atomic"><code>Atomic</code></a>
13 types.</p>13 types.</p>
14 <p><strong>Note</strong>:·This·type·is·only·available·on·platforms·that·support·atomic14 <p><strong>Note</strong>:·This·type·is·only·available·on·platforms·that·support·atomic
15 loads·and·stores·of·pointers,·which·includes·all·platforms·that·support15 loads·and·stores·of·pointers,·which·includes·all·platforms·that·support
16 the·<code>std</code>·crate·but·not·all·those·which·only·support·<a·href="../index.html"·title="mod·alloc"><code>alloc</code></a>.16 the·<code>std</code>·crate·but·not·all·those·which·only·support·<a·href="../index.html"·title="mod·alloc"><code>alloc</code></a>.
17 This·may·be·detected·at·compile·time·using·<code>#[cfg(target_has_atomic·=·"ptr")]</code>.</p>17 This·may·be·detected·at·compile·time·using·<code>#[cfg(target_has_atomic·=·"ptr")]</code>.</p>
18 <h3·id="thread-safety"><a·class="doc-anchor"·href="#thread-safety">§</a>Thread·Safety</h3>18 <h3·id="thread-safety"><a·class="doc-anchor"·href="#thread-safety">§</a>Thread·Safety</h3>
19 <p>Unlike·<a·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>,·<code>Arc&lt;T&gt;</code>·uses·atomic·operations·for·its·reference19 <p>Unlike·<a·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>,·<code>Arc&lt;T&gt;</code>·uses·atomic·operations·for·its·reference
20 counting.·This·means·that·it·is·thread-safe.·The·disadvantage·is·that20 counting.·This·means·that·it·is·thread-safe.·The·disadvantage·is·that
21 atomic·operations·are·more·expensive·than·ordinary·memory·accesses.·If·you21 atomic·operations·are·more·expensive·than·ordinary·memory·accesses.·If·you
22 are·not·sharing·reference-counted·allocations·between·threads,·consider·using22 are·not·sharing·reference-counted·allocations·between·threads,·consider·using
23 <a·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>·for·lower·overhead.·<a·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>·is·a·safe·default,·because·the23 <a·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>·for·lower·overhead.·<a·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>·is·a·safe·default,·because·the
24 compiler·will·catch·any·attempt·to·send·an·<a·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>·between·threads.24 compiler·will·catch·any·attempt·to·send·an·<a·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc&lt;T&gt;</code></a>·between·threads.
25 However,·a·library·might·choose·<code>Arc&lt;T&gt;</code>·in·order·to·give·library·consumers25 However,·a·library·might·choose·<code>Arc&lt;T&gt;</code>·in·order·to·give·library·consumers
26 more·flexibility.</p>26 more·flexibility.</p>
27 <p><code>Arc&lt;T&gt;</code>·will·implement·<a·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send"><code>Send</code></a>·and·<a·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync"><code>Sync</code></a>·as·long·as·the·<code>T</code>·implements27 <p><code>Arc&lt;T&gt;</code>·will·implement·<a·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html"·title="trait·core::marker::Send"><code>Send</code></a>·and·<a·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync"><code>Sync</code></a>·as·long·as·the·<code>T</code>·implements
28 <a·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send"><code>Send</code></a>·and·<a·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync"><code>Sync</code></a>.·Why·can’t·you·put·a·non-thread-safe·type·<code>T</code>·in·an28 <a·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html"·title="trait·core::marker::Send"><code>Send</code></a>·and·<a·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync"><code>Sync</code></a>.·Why·can’t·you·put·a·non-thread-safe·type·<code>T</code>·in·an
29 <code>Arc&lt;T&gt;</code>·to·make·it·thread-safe?·This·may·be·a·bit·counter-intuitive·at29 <code>Arc&lt;T&gt;</code>·to·make·it·thread-safe?·This·may·be·a·bit·counter-intuitive·at
30 first:·after·all,·isn’t·the·point·of·<code>Arc&lt;T&gt;</code>·thread·safety?·The·key·is30 first:·after·all,·isn’t·the·point·of·<code>Arc&lt;T&gt;</code>·thread·safety?·The·key·is
31 this:·<code>Arc&lt;T&gt;</code>·makes·it·thread·safe·to·have·multiple·ownership·of·the·same31 this:·<code>Arc&lt;T&gt;</code>·makes·it·thread·safe·to·have·multiple·ownership·of·the·same
32 data,·but·it··doesn’t·add·thread·safety·to·its·data.·Consider32 data,·but·it··doesn’t·add·thread·safety·to·its·data.·Consider
33 <code>Arc&lt;<a·href="../../core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell">RefCell&lt;T&gt;</a>&gt;</code>.·<a·href="../../core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell&lt;T&gt;</code></a>·isn’t·<a·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync"><code>Sync</code></a>,·and·if·<code>Arc&lt;T&gt;</code>·was·always33 <code>Arc&lt;<a·href="https://doc.rust-lang.org/1.83.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell">RefCell&lt;T&gt;</a>&gt;</code>.·<a·href="https://doc.rust-lang.org/1.83.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell&lt[·...·truncated·by·diffoscope;·len:·65,·SHA:·ca840fe5504946470a90d1f09911acd1c835cdc308b5a366d87b343981b2b17f·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync"><code>Sync</code></a>,·and·if·<code>Arc&lt;T&gt;</code>·was·always
34 <a·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send"><code>Send</code></a>,·<code>Arc&lt;<a·href="../../core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell">RefCell&lt;T&gt;</a>&gt;</code>·would·be·as·well.·But·then·we’d·have·a·problem:34 <a·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Send.html"·title="trait·core::marker::Send"><code>Send</code></a>,·<code>Arc&lt;<a·href="https://doc.rust-lang.org/1.83.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell">RefCell&lt;T&gt;</a>&gt;</code>·would·be·as·well.·But·then·we’d·have·a·problem:
35 <a·href="../../core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell&lt;T&gt;</code></a>·is·not·thread·safe;·it·keeps·track·of·the·borrowing·count·using35 <a·href="https://doc.rust-lang.org/1.83.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell&lt;T&gt;</code></a>·is·not·thread·safe;·it·keeps·track·of·the·borrowing·count·using
36 non-atomic·operations.</p>36 non-atomic·operations.</p>
37 <p>In·the·end,·this·means·that·you·may·need·to·pair·<code>Arc&lt;T&gt;</code>·with·some·sort·of37 <p>In·the·end,·this·means·that·you·may·need·to·pair·<code>Arc&lt;T&gt;</code>·with·some·sort·of
38 <a·href="../../std/sync/index.html"><code>std::sync</code></a>·type,·usually·<a·href="../../std/sync/struct.Mutex.html"><code>Mutex&lt;T&gt;</code></a>.</p>38 <a·href="../../std/sync/index.html"><code>std::sync</code></a>·type,·usually·<a·href="../../std/sync/struct.Mutex.html"><code>Mutex&lt;T&gt;</code></a>.</p>
39 <h3·id="breaking-cycles-with-weak"><a·class="doc-anchor"·href="#breaking-cycles-with-weak">§</a>Breaking·cycles·with·<code>Weak</code></h3>39 <h3·id="breaking-cycles-with-weak"><a·class="doc-anchor"·href="#breaking-cycles-with-weak">§</a>Breaking·cycles·with·<code>Weak</code></h3>
40 <p>The·<a·href="struct.Arc.html#method.downgrade"·title="associated·function·alloc::sync::Arc::downgrade"><code>downgrade</code></a>·method·can·be·used·to·create·a·non-owning40 <p>The·<a·href="struct.Arc.html#method.downgrade"·title="associated·function·alloc::sync::Arc::downgrade"><code>downgrade</code></a>·method·can·be·used·to·create·a·non-owning
41 <a·href="struct.Weak.html"·title="struct·alloc::sync::Weak"><code>Weak</code></a>·pointer.·A·<a·href="struct.Weak.html"·title="struct·alloc::sync::Weak"><code>Weak</code></a>·pointer·can·be·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>d41 <a·href="struct.Weak.html"·title="struct·alloc::sync::Weak"><code>Weak</code></a>·pointer.·A·<a·href="struct.Weak.html"·title="struct·alloc::sync::Weak"><code>Weak</code></a>·pointer·can·be·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>d
42 to·an·<code>Arc</code>,·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·has42 to·an·<code>Arc</code>,·but·this·will·return·<a·href="https://doc.rust-lang.org/1.83.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·has
43 already·been·dropped.·In·other·words,·<code>Weak</code>·pointers·do·not·keep·the·value43 already·been·dropped.·In·other·words,·<code>Weak</code>·pointers·do·not·keep·the·value
44 inside·the·allocation·alive;·however,·they·<em>do</em>·keep·the·allocation44 inside·the·allocation·alive;·however,·they·<em>do</em>·keep·the·allocation
45 (the·backing·store·for·the·value)·alive.</p>45 (the·backing·store·for·the·value)·alive.</p>
46 <p>A·cycle·between·<code>Arc</code>·pointers·will·never·be·deallocated.·For·this·reason,46 <p>A·cycle·between·<code>Arc</code>·pointers·will·never·be·deallocated.·For·this·reason,
47 <a·href="struct.Weak.html"·title="struct·alloc::sync::Weak"><code>Weak</code></a>·is·used·to·break·cycles.·For·example,·a·tree·could·have47 <a·href="struct.Weak.html"·title="struct·alloc::sync::Weak"><code>Weak</code></a>·is·used·to·break·cycles.·For·example,·a·tree·could·have
48 strong·<code>Arc</code>·pointers·from·parent·nodes·to·children,·and·<a·href="struct.Weak.html"·title="struct·alloc::sync::Weak"><code>Weak</code></a>48 strong·<code>Arc</code>·pointers·from·parent·nodes·to·children,·and·<a·href="struct.Weak.html"·title="struct·alloc::sync::Weak"><code>Weak</code></a>
49 pointers·from·children·back·to·their·parents.</p>49 pointers·from·children·back·to·their·parents.</p>
Offset 54, 15 lines modifiedOffset 54, 15 lines modified
54 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;54 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;
55 <span·class="kw">let·</span>foo·=·Arc::new(<span·class="macro">vec!</span>[<span·class="number">1.0</span>,·<span·class="number">2.0</span>,·<span·class="number">3.0</span>]);55 <span·class="kw">let·</span>foo·=·Arc::new(<span·class="macro">vec!</span>[<span·class="number">1.0</span>,·<span·class="number">2.0</span>,·<span·class="number">3.0</span>]);
56 <span·class="comment">//·The·two·syntaxes·below·are·equivalent.56 <span·class="comment">//·The·two·syntaxes·below·are·equivalent.
57 </span><span·class="kw">let·</span>a·=·foo.clone();57 </span><span·class="kw">let·</span>a·=·foo.clone();
58 <span·class="kw">let·</span>b·=·Arc::clone(<span·class="kw-2">&amp;</span>foo);58 <span·class="kw">let·</span>b·=·Arc::clone(<span·class="kw-2">&amp;</span>foo);
59 <span·class="comment">//·a,·b,·and·foo·are·all·Arcs·that·point·to·the·same·memory·location</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++++let+foo+=+Arc::new(vec!%5B1.0,+2.0,+3.0%5D);%0A++++//+The+two+syntaxes+below+are+equivalent.%0A++++let+a+=+foo.clone();%0A++++let+b+=+Arc::clone(%26foo);%0A++++//+a,+b,+and+foo+are+all+Arcs+that+point+to+the+same+memory+location%0A%7D&amp;edition=2021"></a></div>59 <span·class="comment">//·a,·b,·and·foo·are·all·Arcs·that·point·to·the·same·memory·location</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++++let+foo+=+Arc::new(vec!%5B1.0,+2.0,+3.0%5D);%0A++++//+The+two+syntaxes+below+are+equivalent.%0A++++let+a+=+foo.clone();%0A++++let+b+=+Arc::clone(%26foo);%0A++++//+a,+b,+and+foo+are+all+Arcs+that+point+to+the+same+memory+location%0A%7D&amp;edition=2021"></a></div>
60 <h3·id="deref-behavior"><a·class="doc-anchor"·href="#deref-behavior">§</a><code>Deref</code>·behavior</h3>60 <h3·id="deref-behavior"><a·class="doc-anchor"·href="#deref-behavior">§</a><code>Deref</code>·behavior</h3>
61 <p><code>Arc&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),61 <p><code>Arc&lt;T&gt;</code>·automatically·dereferences·to·<code>T</code>·(via·the·<a·href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref"><code>Deref</code></a>·trait),
62 so·you·can·call·<code>T</code>’s·methods·on·a·value·of·type·<code>Arc&lt;T&gt;</code>.·To·avoid·name62 so·you·can·call·<code>T</code>’s·methods·on·a·value·of·type·<code>Arc&lt;T&gt;</code>.·To·avoid·name
63 clashes·with·<code>T</code>’s·methods,·the·methods·of·<code>Arc&lt;T&gt;</code>·itself·are·associated63 clashes·with·<code>T</code>’s·methods,·the·methods·of·<code>Arc&lt;T&gt;</code>·itself·are·associated
64 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>64 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>
  
65 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;65 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;
  
66 <span·class="kw">let·</span>my_arc·=·Arc::new(());66 <span·class="kw">let·</span>my_arc·=·Arc::new(());
Offset 91, 15 lines modifiedOffset 91, 15 lines modified
91 <span·class="kw">for·_·in·</span><span·class="number">0</span>..<span·class="number">10·</span>{91 <span·class="kw">for·_·in·</span><span·class="number">0</span>..<span·class="number">10·</span>{
92 ····<span·class="kw">let·</span>five·=·Arc::clone(<span·class="kw-2">&amp;</span>five);92 ····<span·class="kw">let·</span>five·=·Arc::clone(<span·class="kw-2">&amp;</span>five);
  
93 ····thread::spawn(<span·class="kw">move·</span>||·{93 ····thread::spawn(<span·class="kw">move·</span>||·{
94 ········<span·class="macro">println!</span>(<span·class="string">"{five:?}"</span>);94 ········<span·class="macro">println!</span>(<span·class="string">"{five:?}"</span>);
95 ····});95 ····});
96 }</code></pre><a·class="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::thread;%0A++++%0A++++let+five+=+Arc::new(5);%0A++++%0A++++for+_+in+0..10+%7B%0A++++++++let+five+=+Arc::clone(%26five);%0A++++%0A++++++++thread::spawn(move+%7C%7C+%7B%0A++++++++++++println!(%22%7Bfive:?%7D%22);%0A++++++++%7D);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>96 }</code></pre><a·class="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::thread;%0A++++%0A++++let+five+=+Arc::new(5);%0A++++%0A++++for+_+in+0..10+%7B%0A++++++++let+five+=+Arc::clone(%26five);%0A++++%0A++++++++thread::spawn(move+%7C%7C+%7B%0A++++++++++++println!(%22%7Bfive:?%7D%22);%0A++++++++%7D);%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
97 <p>Sharing·a·mutable·<a·href="../../core/sync/atomic/struct.AtomicUsize.html"·title="sync::atomic::AtomicUsize"><code>AtomicUsize</code></a>:</p>97 <p>Sharing·a·mutable·<a·href="https://doc.rust-lang.org/1.83.0/core/sync/atomic/struct.AtomicUsize.html"·title="sync::atomic::AtomicUsize"><code>AtomicUsize</code></a>:</p>
  
98 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;98 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;
99 <span·class="kw">use·</span>std::sync::atomic::{AtomicUsize,·Ordering};99 <span·class="kw">use·</span>std::sync::atomic::{AtomicUsize,·Ordering};
100 <span·class="kw">use·</span>std::thread;100 <span·class="kw">use·</span>std::thread;
  
101 <span·class="kw">let·</span>val·=·Arc::new(AtomicUsize::new(<span·class="number">5</span>));101 <span·class="kw">let·</span>val·=·Arc::new(AtomicUsize::new(<span·class="number">5</span>));
  
Offset 115, 15 lines modifiedOffset 115, 15 lines modified
115 counting·in·general.</p>115 counting·in·general.</p>
116 </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-Arc%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#372-628">source</a><a·href="#impl-Arc%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</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/sync.rs.html#385-394">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(data:·T)·-&gt;·<a·class="struct"·href="struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Arc&lt;T&gt;</code>.</p>116 </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-Arc%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#372-628">source</a><a·href="#impl-Arc%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</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/sync.rs.html#385-394">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(data:·T)·-&gt;·<a·class="struct"·href="struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Arc&lt;T&gt;</code>.</p>
117 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>117 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
118 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;118 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;
  
119 <span·class="kw">let·</span>five·=·Arc::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::sync::Arc;%0A++++%0A++++let+five+=+Arc::new(5);%0A%7D&amp;edition=2021"></a></div>119 <span·class="kw">let·</span>five·=·Arc::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::sync::Arc;%0A++++%0A++++let+five+=+Arc::new(5);%0A%7D&amp;edition=2021"></a></div>
120 </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/sync.rs.html#450-455">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.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T&gt;<div·class="where">where120 </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/sync.rs.html#450-455">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.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T&gt;<div·class="where">where
121 ····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::sync::Weak">Weak</a>&lt;T&gt;)·-&gt;·T,</div></h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Arc&lt;T&gt;</code>·while·giving·you·a·<code>Weak&lt;T&gt;</code>·to·the·allocation,121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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::sync::Weak">Weak</a>&lt;T&gt;)·-&gt;·T,</div></h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Arc&lt;T&gt;</code>·while·giving·you·a·<code>Weak&lt;T&gt;</code>·to·the·allocation,
122 to·allow·you·to·construct·a·<code>T</code>·which·holds·a·weak·pointer·to·itself.</p>122 to·allow·you·to·construct·a·<code>T</code>·which·holds·a·weak·pointer·to·itself.</p>
123 <p>Generally,·a·structure·circularly·referencing·itself,·either·directly·or123 <p>Generally,·a·structure·circularly·referencing·itself,·either·directly·or
124 indirectly,·should·not·hold·a·strong·reference·to·itself·to·prevent·a·memory·leak.124 indirectly,·should·not·hold·a·strong·reference·to·itself·to·prevent·a·memory·leak.
125 Using·this·function,·you·get·access·to·the·weak·pointer·during·the125 Using·this·function,·you·get·access·to·the·weak·pointer·during·the
126 initialization·of·<code>T</code>,·before·the·<code>Arc&lt;T&gt;</code>·is·created,·such·that·you·can126 initialization·of·<code>T</code>,·before·the·<code>Arc&lt;T&gt;</code>·is·created,·such·that·you·can
127 clone·and·store·it·inside·the·<code>T</code>.</p>127 clone·and·store·it·inside·the·<code>T</code>.</p>
128 <p><code>new_cyclic</code>·first·allocates·the·managed·allocation·for·the·<code>Arc&lt;T&gt;</code>,128 <p><code>new_cyclic</code>·first·allocates·the·managed·allocation·for·the·<code>Arc&lt;T&gt;</code>,
Offset 155, 51 lines modifiedOffset 155, 51 lines modified
155 ····}155 ····}
  
156 ····<span·class="doccomment">///·Returns·a·reference·counted·pointer·to·Self.156 ····<span·class="doccomment">///·Returns·a·reference·counted·pointer·to·Self.
157 ····</span><span·class="kw">fn·</span>me(<span·class="kw-2">&amp;</span><span·class="self">self</span>)·-&gt;·Arc&lt;<span·class="self">Self</span>&gt;·{157 ····</span><span·class="kw">fn·</span>me(<span·class="kw-2">&amp;</span><span·class="self">self</span>)·-&gt;·Arc&lt;<span·class="self">Self</span>&gt;·{
158 ········<span·class="self">self</span>.me.upgrade().unwrap()158 ········<span·class="self">self</span>.me.upgrade().unwrap()
159 ····}159 ····}
160 }</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::sync::%7BArc,+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+Arc%3CSelf%3E+%7B%0A++++++++++++//+%60me%60+is+a+%60Weak%3CGadget%3E%60+pointing+at+the+new+allocation+of+the%0A++++++++++++//+%60Arc%60+we're+constructing.%0A++++++++++++Arc::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+Arc%3CSelf%3E+%7B%0A++++++++++++self.me.upgrade().unwrap()%0A++++++++%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>160 }</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::sync::%7BArc,+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+Arc%3CSelf%3E+%7B%0A++++++++++++//+%60me%60+is+a+%60Weak%3CGadget%3E%60+pointing+at+the+new+allocation+of+the%0A++++++++++++//+%60Arc%60+we're+constructing.%0A++++++++++++Arc::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+Arc%3CSelf%3E+%7B%0A++++++++++++self.me.upgrade().unwrap()%0A++++++++%7D%0A++++%7D%0A%7D&amp;edition=2021"></a></div>
161 </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/sync.rs.html#479-487">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.Arc.html"·title="struct·alloc::sync::Arc">Arc</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>Arc</code>·with·uninitialized·contents.</p>161 </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/sync.rs.html#479-487">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.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.83.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>Arc</code>·with·uninitialized·contents.</p>
162 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>162 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
163 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(get_mut_unchecked)]163 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(get_mut_unchecked)]
  
164 </span><span·class="kw">use·</span>std::sync::Arc;164 </span><span·class="kw">use·</span>std::sync::Arc;
  
165 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Arc::&lt;u32&gt;::new_uninit();165 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Arc::&lt;u32&gt;::new_uninit();
  
166 <span·class="comment">//·Deferred·initialization:166 <span·class="comment">//·Deferred·initialization:
167 </span>Arc::get_mut(<span·class="kw-2">&amp;mut·</span>five).unwrap().write(<span·class="number">5</span>);167 </span>Arc::get_mut(<span·class="kw-2">&amp;mut·</span>five).unwrap().write(<span·class="number">5</span>);
  
168 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{·five.assume_init()·};168 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{·five.assume_init()·};
  
169 <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::sync::Arc;%0A++++%0A++++let+mut+five+=+Arc::%3Cu32%3E::new_uninit();%0A++++%0A++++//+Deferred+initialization:%0A++++Arc::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>169 <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::sync::Arc;%0A++++%0A++++let+mut+five+=+Arc::%3Cu32%3E::new_uninit();%0A++++%0A++++//+Deferred+initialization:%0A++++Arc::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>
170 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_zeroed"·class="method"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#513-521">source</a><h4·class="code-header">pub·fn·<a·href="#method.new_zeroed"·class="fn">new_zeroed</a>()·-&gt;·<a·class="struct"·href="struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</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>Arc</code>·with·uninitialized·contents,·with·the·memory170 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_zeroed"·class="method"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#513-521">source</a><h4·class="code-header">pub·fn·<a·href="#method.new_zeroed"·class="fn">new_zeroed</a>()·-&gt;·<a·class="struct"·href="struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.83.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>Arc</code>·with·uninitialized·contents,·with·the·memory
171 being·filled·with·<code>0</code>·bytes.</p>171 being·filled·with·<code>0</code>·bytes.</p>
172 <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·incorrect·usage172 <p>See·<a·href="https://doc.rust-lang.org/1.83.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·and·incorrect·usage
173 of·this·method.</p>173 of·this·method.</p>
174 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>174 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
175 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_zeroed_alloc)]175 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_zeroed_alloc)]
  
176 </span><span·class="kw">use·</span>std::sync::Arc;176 </span><span·class="kw">use·</span>std::sync::Arc;
Max diff block lines reached; 354798/404836 bytes (87.64%) of diff not shown.
116 KB
./usr/share/doc/rust-doc/html/alloc/sync/struct.Weak.html
    
Offset 1, 41 lines modifiedOffset 1, 41 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.·The·allocation·is·accessed·by·calling·`upgrade`·on·the·`Weak`·pointer,·which·returns·an·Option&#60;Arc&#60;T&#62;&#62;."><title>Weak·in·alloc::sync·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#314-326">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·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.·The·allocation·is·accessed·by·calling·`upgrade`·on·the·`Weak`·pointer,·which·returns·an·Option&#60;Arc&#60;T&#62;&#62;."><title>Weak·in·alloc::sync·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»2024-11-26)»     (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#314-326">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.83.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·the
2 managed·allocation.·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>2 managed·allocation.·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 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>3 pointer,·which·returns·an·<code><a·href="https://doc.rust-lang.org/1.83.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 <p>Since·a·<code>Weak</code>·reference·does·not·count·towards·ownership,·it·will·not4 <p>Since·a·<code>Weak</code>·reference·does·not·count·towards·ownership,·it·will·not
5 prevent·the·value·stored·in·the·allocation·from·being·dropped,·and·<code>Weak</code>·itself·makes·no5 prevent·the·value·stored·in·the·allocation·from·being·dropped,·and·<code>Weak</code>·itself·makes·no
6 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>6 guarantees·about·the·value·still·being·present.·Thus·it·may·return·<a·href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>
7 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·allocation7 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
8 itself·(the·backing·store)·from·being·deallocated.</p>8 itself·(the·backing·store)·from·being·deallocated.</p>
9 <p>A·<code>Weak</code>·pointer·is·useful·for·keeping·a·temporary·reference·to·the·allocation9 <p>A·<code>Weak</code>·pointer·is·useful·for·keeping·a·temporary·reference·to·the·allocation
10 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·to10 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
11 prevent·circular·references·between·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·pointers,·since·mutual·owning·references11 prevent·circular·references·between·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·pointers,·since·mutual·owning·references
12 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·could12 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
13 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>13 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 pointers·from·children·back·to·their·parents.</p>14 pointers·from·children·back·to·their·parents.</p>
15 <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>15 <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 </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#2649-2675">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#2667-2674">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.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-Weak%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2649-2675">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#2667-2674">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 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>17 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.83.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>
18 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>18 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
19 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Weak;19 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Weak;
  
20 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();20 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();
21 <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>21 <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 </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#2677-2705">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#2697-2704">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·provided22 </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#2677-2705">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#2697-2704">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
23 allocator.23 allocator.
24 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>24 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.83.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</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="attr">#![feature(allocator_api)]26 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
  
27 </span><span·class="kw">use·</span>std::sync::Weak;27 </span><span·class="kw">use·</span>std::sync::Weak;
28 <span·class="kw">use·</span>std::alloc::System;28 <span·class="kw">use·</span>std::alloc::System;
  
29 <span·class="kw">let·</span>empty:·Weak&lt;i64,·<span·class="kw">_</span>&gt;·=·Weak::new_in(System);29 <span·class="kw">let·</span>empty:·Weak&lt;i64,·<span·class="kw">_</span>&gt;·=·Weak::new_in(System);
30 <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>30 <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 </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#2714-2761">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:·4ed6505a203f287e1def5521163767cfd7444259056661dc03fca377ab038950·...·]/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>31 </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#2714-2761">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.83.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:·f3eec6ecc9123249c5c5a253b593bafb755914f88114f88ffb677670f453fb2b·...·]/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 <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>32 <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 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>33 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>
34 <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>,34 <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 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>35 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>
36 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>36 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>
37 <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·potential37 <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
38 weak·reference.</p>38 weak·reference.</p>
Offset 56, 18 lines modifiedOffset 56, 18 lines modified
56 <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());56 <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="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));57 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));
  
58 drop(strong);58 drop(strong);
  
59 <span·class="comment">//·Decrement·the·last·weak·count.59 <span·class="comment">//·Decrement·the·last·weak·count.
60 </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>60 </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 </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#2763-2947">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:·784120bb113710ebd2b780802ad6c9494b2e5c64cbe2ea4577ad94f3a99a1396·...·]/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>61 </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#2763-2947">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.83.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:·00cc685120a1c6ebd0efecf8fed199a62c914139bf6a2c7c5706ec7a49e9150e·...·]/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><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#2798-2811">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>62 </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#2798-2811">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.83.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 <p>The·pointer·is·valid·only·if·there·are·some·strong·references.·The·pointer·may·be·dangling,63 <p>The·pointer·is·valid·only·if·there·are·some·strong·references.·The·pointer·may·be·dangling,
64 unaligned·or·even·<a·href="../../core/ptr/fn.null.html"·title="ptr::null"><code>null</code></a>·otherwise.</p>64 unaligned·or·even·<a·href="https://doc.rust-lang.org/1.83.0/core/ptr/fn.null.html"·title="ptr::null"><code>null</code></a>·otherwise.</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="kw">use·</span>std::sync::Arc;66 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;
67 <span·class="kw">use·</span>std::ptr;67 <span·class="kw">use·</span>std::ptr;
  
68 <span·class="kw">let·</span>strong·=·Arc::new(<span·class="string">"hello"</span>.to_owned());68 <span·class="kw">let·</span>strong·=·Arc::new(<span·class="string">"hello"</span>.to_owned());
69 <span·class="kw">let·</span>weak·=·Arc::downgrade(<span·class="kw-2">&amp;</span>strong);69 <span·class="kw">let·</span>weak·=·Arc::downgrade(<span·class="kw-2">&amp;</span>strong);
70 <span·class="comment">//·Both·point·to·the·same·object70 <span·class="comment">//·Both·point·to·the·same·object
Offset 75, 15 lines modifiedOffset 75, 15 lines modified
75 <span·class="comment">//·The·strong·here·keeps·it·alive,·so·we·can·still·access·the·object.75 <span·class="comment">//·The·strong·here·keeps·it·alive,·so·we·can·still·access·the·object.
76 </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()·});76 </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 drop(strong);77 drop(strong);
78 <span·class="comment">//·But·not·any·more.·We·can·do·weak.as_ptr(),·but·accessing·the·pointer·would·lead·to78 <span·class="comment">//·But·not·any·more.·We·can·do·weak.as_ptr(),·but·accessing·the·pointer·would·lead·to
79 //·undefined·behaviour.79 //·undefined·behaviour.
80 //·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+behaviour.%0A++++//+assert_eq!(%22hello%22,+unsafe+%7B+%26*weak.as_ptr()+%7D);%0A%7D&amp;edition=2021"></a></div>80 //·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+behaviour.%0A++++//+assert_eq!(%22hello%22,+unsafe+%7B+%26*weak.as_ptr()+%7D);%0A%7D&amp;edition=2021"></a></div>
81 </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#2842-2844">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>81 </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#2842-2844">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.83.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 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of82 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of
83 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned83 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned
84 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>84 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 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with85 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with
86 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::sync::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>86 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::sync::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>
87 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>87 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
88 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::{Arc,·Weak};88 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::{Arc,·Weak};
Offset 93, 15 lines modifiedOffset 93, 15 lines modified
93 <span·class="kw">let·</span>raw·=·weak.into_raw();93 <span·class="kw">let·</span>raw·=·weak.into_raw();
  
94 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));94 <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="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});95 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});
  
96 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw)·});96 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw)·});
97 <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>97 <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 </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#2877-2883">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>98 </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#2877-2883">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.83.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 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of99 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of
100 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned100 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned
101 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>101 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 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with102 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with
103 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::sync::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>103 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::sync::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>
104 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>104 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
105 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]105 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
Offset 113, 15 lines modifiedOffset 113, 15 lines modified
113 <span·class="kw">let·</span>(raw,·alloc)·=·weak.into_raw_with_allocator();113 <span·class="kw">let·</span>(raw,·alloc)·=·weak.into_raw_with_allocator();
  
114 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));114 <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="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});115 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});
  
116 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw_in(raw,·alloc)·});116 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw_in(raw,·alloc)·});
117 <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>117 <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 </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#2929-2946">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·provided118 </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#2929-2946">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.83.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·provided
119 allocator.</p>119 allocator.</p>
120 <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>120 <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 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>121 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>
122 <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>,122 <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 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>123 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>
124 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>124 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
125 <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·potential125 <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 143, 18 lines modifiedOffset 143, 18 lines modified
143 <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());143 <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="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));144 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));
  
145 drop(strong);145 drop(strong);
  
146 <span·class="comment">//·Decrement·the·last·weak·count.146 <span·class="comment">//·Decrement·the·last·weak·count.
147 </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>147 </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 </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#2949-3110">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:·2f91d0778bfd239364d54d455568f3afa74148c7be52d96e15b6734a112c9df2·...·]/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">where148 </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#2949-3110">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.83.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:·116d08e1004e38026aa1abcd683b722274896323ae087360a0914c287ca3221c·...·]/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
149 ····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>,·delaying149 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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>,·delaying
150 dropping·of·the·inner·value·if·successful.</p>150 dropping·of·the·inner·value·if·successful.</p>
151 <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>151 <p>Returns·<a·href="https://doc.rust-lang.org/1.83.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 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>152 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
153 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;153 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;
  
154 <span·class="kw">let·</span>five·=·Arc::new(<span·class="number">5</span>);154 <span·class="kw">let·</span>five·=·Arc::new(<span·class="number">5</span>);
  
155 <span·class="kw">let·</span>weak_five·=·Arc::downgrade(<span·class="kw-2">&amp;</span>five);155 <span·class="kw">let·</span>weak_five·=·Arc::downgrade(<span·class="kw-2">&amp;</span>five);
  
Max diff block lines reached; 70354/118731 bytes (59.25%) of diff not shown.
5.41 KB
./usr/share/doc/rust-doc/html/alloc/task/trait.LocalWake.html
    
Offset 84, 9 lines modifiedOffset 84, 9 lines modified
84 block_on(<span·class="kw">async·</span>{84 block_on(<span·class="kw">async·</span>{
85 ····<span·class="macro">println!</span>(<span·class="string">"hello·world"</span>);85 ····<span·class="macro">println!</span>(<span·class="string">"hello·world"</span>);
86 });</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>86 });</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 </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#271">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>87 </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#271">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></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#281-283">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>88 </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#281-283">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 <p>If·an·executor·supports·a·cheaper·way·to·wake·without·consuming·the89 <p>If·an·executor·supports·a·cheaper·way·to·wake·without·consuming·the
90 waker,·it·should·override·this·method.·By·default,·it·clones·the90 waker,·it·should·override·this·method.·By·default,·it·clones·the
91 <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>91 <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.83.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 </div></details></div><h2·id="object-safety"·class="section-header">Object·Safety<a·href="#object-safety"·class="anchor">§</a></h2><div·class="object-safety-info">This·trait·is·<b>not</b>·<a·href="https://doc.rust-lang.org/1.83.0/reference/items/traits.html#object-safety">object·safe</a>.</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>92 </div></details></div><h2·id="object-safety"·class="section-header">Object·Safety<a·href="#object-safety"·class="anchor">§</a></h2><div·class="object-safety-info">This·trait·is·<b>not</b>·<a·href="https://doc.rust-lang.org/1.83.0/reference/items/traits.html#object-safety">object·safe</a>.</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.82 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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="#object-safety">Object·Safety</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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.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-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»  2024-11-26)»       (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="#object-safety">Object·Safety</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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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="https://doc.rust-lang.org/1.83.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,
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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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>25 <p>Vectors·also·support·indexing·(through·the·<a·href="https://doc.rust-lang.org/1.83.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.83.0/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>
311 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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="../../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="https://doc.rust-lang.org/1.83.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>
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="../../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="https://doc.rust-lang.org/1.83.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>
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, 216 lines modifiedOffset 23, 216 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="../../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:·2ff049b08a1825ec4bbe5471f70339efe8dac128f34c5aa5849fb70c74704ec0·...·]/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="https://doc.rust-lang.org/1.83.0/core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html">[T]</a>&gt;·for·<a·class="struct"·href="struct.Drain.html[·...·truncated·by·diffoscope;·len:·7401,·SHA:·0cd5e52f09de34502eafc6c989955e722bceca72069ddbb89ca1fb5349dcd7e9·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(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,30 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes31 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
35 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::Itera[·...·truncated·by·diffoscope;·len:·7534,·SHA:·cea382e74c3e2ac43472f1eeeb4c51d30207e7172c020ae470f0c3af49fb0543·...·]/core/primitive.usize.html">usize</a>&gt;(37 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8290,·SHA:·3985fd31d1f570e5aa643cee473991b81898c66a6744259fcb3e740e68f13f43·...·]/core/primitive.usize.html">usize</a>&gt;(
38 ····&amp;mut·self,38 ····&amp;mut·self,
39 )·-&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">where39 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</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></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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
44 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
48 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where48 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
50 ····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>50 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
51 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where51 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
52 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
54 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where54 element.·<a·href="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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
55 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
57 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element58 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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
59 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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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">where59 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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
60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
62 ····Self:·<a·class="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·as62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·as
63 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where63 the·next·value.·<a·href="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
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'>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>·methods64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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
65 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See65 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
66 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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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">where66 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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
67 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
68 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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">where68 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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
69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
70 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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">where70 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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
71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
72 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where72 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
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'>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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
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'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·fewer
75 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where75 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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
76 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····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,·but77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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
78 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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where78 unlike·<a·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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
79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,80 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</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::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····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>·over83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
84 <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>,84 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
85 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where85 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
86 ····Self:·<a·class="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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
87 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
89 ····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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
90 ····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;,90 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,92 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,95 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
97 ····T:·'a,97 ····T:·'a,
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;,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
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,99 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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="../../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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</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="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,103 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
108 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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,110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
112 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
115 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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·reducing117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(118 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,123 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the124 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
Max diff block lines reached; 139119/318861 bytes (43.63%) of diff not shown.
271 KB
./usr/share/doc/rust-doc/html/alloc/vec/struct.ExtractIf.html
    
Offset 1, 212 lines modifiedOffset 1, 212 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623»       2024-11-26)»    (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="../../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>2 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·36,·SHA:·76dcb874d2cce3d908bc7a10e51a060dfb99578d8fb9b9f9dcbc177558fc8378·...·]/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="../../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:·b9244f30651a1e0b979ececec618e544c8d606f18c57c2232e7f68439613cfd5·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·472,·SHA:·8f2e25a562d38bebc79bdc896ee276bf5222cddc226357231192e40f1e4c7499·...·]/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="../../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:·8d6868b1d4d95c667fc243d52c9e7d47b0920578a172ae6f07a338dea18edff9·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·1451,·SHA:·c196f20872b871d34cf55a1772aebeb1bf3c924cfe1bedf34c3e40b83b035d7f·...·]/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="../../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:·6465c6de89d7f90e5c9687c67cf94c45589a8749f7acae85d36c8733dbf85a90·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·1227,·SHA:·5aea4a12efbdacfae1be52708fc8eea916ae7d1f94d9cfca4aa09fdacfbe8d43·...·]/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="../../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:·66e1c2970d38492e6b0a8a9348362c882183a0e072c95bfabcf4727aa107ee9d·...·]/core/primitive.usize.html">usize</a>&gt;(14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·2926,·SHA:·64e0d87481374c600825f86b8f431975b7c4403330be0daae14e20e4ac126995·...·]/core/primitive.usize.html">usize</a>&gt;(
15 ····&amp;mut·self,15 ····&amp;mut·self,
16 )·-&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">where16 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
18 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
21 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
23 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
25 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where25 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>27 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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;·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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
31 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
33 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element35 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
40 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
45 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
47 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
52 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,53 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
54 ····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,·but54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
57 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,57 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
58 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
60 ····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>·over60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
61 <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 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
62 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where62 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
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'>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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
64 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Itera[·...·truncated·by·diffoscope;·len:·635,·SHA:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
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'>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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
67 ····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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
68 ····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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,69 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
71 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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="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;,72 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·42978c066e160775179ddf7c8635346091d697b63a8149dd90cebf1e30cd1517·...·]/core/primitive.bool.html">bool</a><div·class="where">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·0267316cbf812277eaa09f2991eb3d09faa49c66ed47de72e7ceb96c4a28cbb1·...·]/core/primitive.bool.html">bool</a><div·class="where">where
74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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,75 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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="../../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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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="https://doc.rust-lang.org/1.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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;·R,78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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="https://doc.rust-lang.org/1.83.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·returns
80 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/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="../../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·the83 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
84 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
87 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/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="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(90 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,95 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the96 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·956,·SHA:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
103 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where103 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,108 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where109 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,110 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
112 ····&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·returns112 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where113 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
114 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·974,·SHA:·fb028f3663d5c67fae47747ce378bdcc91d9c164f281d737611dd1ec887206bc·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·709186c80855a2bdf69fa7c72edf8587a1884cd9fe6ef0c19bfced07ab06d453·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,116 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
117 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
118 ····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·the118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·the
119 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·02bcd7eb7b34e56858e388cd8e25e7e0db858eb8193096a4a6a176c5a49151a7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where119 specified·function.·<a·href="https://doc.rust-lang.org/1.83.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:·e25c436e6f6f10334cce9aa3c63713cf44c9a44b0cdb74123cfbaf867c5491c6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,120 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
121 ····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:·238,·SHA:·818f93daa047f48aec7c785cf36846c1bf4b54311787942bff42757df3ee668f·...·]/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·the121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·ab872a5bec1f0f961bd0dbb6ac90907ce9e040134a16c524f1a5d9622ba05be3·...·]/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
122 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=[·...·truncated·by·diffoscope;·len:·503,·SHA:·190dac6048bda98658ead42870348465b5b8721bdb5923c1222ca634e470f1a3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where122 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.83.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:·a34680681b516f9e0cbf02825d65dcd6749552af15496528e42e28b5ed210d37·...·]/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="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,123 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····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·the125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·minimum·value·from·the
126 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=[·...·truncated·by·diffoscope;·len:·496,·SHA:·2bda7c0e9b5772a555bb689908791c4c7160f538659a6e1ec8976f71a8ff527b·...·]/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="https://doc.rust-lang.org/1.83.0/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"[·...·truncated·by·diffoscope;·len:·631,·SHA:·a58ce6115332156a47010af2730fca6f7d485f526aaea9d2a93a202ddec783ba·...·]/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; 79317/277185 bytes (28.62%) of diff not shown.
327 KB
./usr/share/doc/rust-doc/html/alloc/vec/struct.IntoIter.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·that·moves·out·of·a·vector."><title>IntoIter·in·alloc::vec·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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="#">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_mut_slice"·title="as_mut_slice">as_mut_slice</a></li><li><a·href="#method.as_slice"·title="as_slice">as_slice</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-IntoIter%3CT,+A%3E"·title="AsRef&#60;[T]&#62;">AsRef&#60;[T]&#62;</a></li><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-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-Drop-for-IntoIter%3CT,+A%3E"·title="Drop">Drop</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-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-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-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>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">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/vec/into_iter.rs.html#45-61">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·iterator·that·moves·out·of·a·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="An·iterator·that·moves·out·of·a·vector."><title>IntoIter·in·alloc::vec·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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="#">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_mut_slice"·title="as_mut_slice">as_mut_slice</a></li><li><a·href="#method.as_slice"·title="as_slice">as_slice</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-IntoIter%3CT,+A%3E"·title="AsRef&#60;[T]&#62;">AsRef&#60;[T]&#62;</a></li><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-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-Drop-for-IntoIter%3CT,+A%3E"·title="Drop">Drop</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-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-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-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>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">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/vec/into_iter.rs.html#45-61">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·iterator·that·moves·out·of·a·vector.</p>
2 <p>This·<code>struct</code>·is·created·by·the·<code>into_iter</code>·method·on·<a·href="struct.Vec.html"·title="struct·alloc::vec::Vec"><code>Vec</code></a>2 <p>This·<code>struct</code>·is·created·by·the·<code>into_iter</code>·method·on·<a·href="struct.Vec.html"·title="struct·alloc::vec::Vec"><code>Vec</code></a>
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).</p>3 (provided·by·the·<a·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).</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>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>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::IntoIter&lt;<span·class="kw">_</span>&gt;·=·v.into_iter();</code></pre><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!%5B0,+1,+2%5D;%0A++++let+iter:+std::vec::IntoIter%3C_%3E+=+v.into_iter();%0A%7D&amp;edition=2021"></a></div>6 <span·class="kw">let·</span>iter:·std::vec::IntoIter&lt;<span·class="kw">_</span>&gt;·=·v.into_iter();</code></pre><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!%5B0,+1,+2%5D;%0A++++let+iter:+std::vec::IntoIter%3C_%3E+=+v.into_iter();%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-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/into_iter.rs.html#70-189">source</a><a·href="#impl-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>&gt;·<a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::vec::IntoIter">IntoIter</a>&lt;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.15.0">1.15.0</span>···<a·class="src"·href="../../src/alloc/vec/into_iter.rs.html#83-85">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>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-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/into_iter.rs.html#70-189">source</a><a·href="#impl-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>&gt;·<a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::vec::IntoIter">IntoIter</a>&lt;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.15.0">1.15.0</span>···<a·class="src"·href="../../src/alloc/vec/into_iter.rs.html#83-85">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.83.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>
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>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>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>into_iter·=·vec.into_iter();10 <span·class="kw">let·</span><span·class="kw-2">mut·</span>into_iter·=·vec.into_iter();
11 <span·class="macro">assert_eq!</span>(into_iter.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>(into_iter.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>=·into_iter.next().unwrap();12 <span·class="kw">let·_·</span>=·into_iter.next().unwrap();
13 <span·class="macro">assert_eq!</span>(into_iter.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+vec+=+vec!%5B'a',+'b',+'c'%5D;%0A++++let+mut+into_iter+=+vec.into_iter();%0A++++assert_eq!(into_iter.as_slice(),+%26%5B'a',+'b',+'c'%5D);%0A++++let+_+=+into_iter.next().unwrap();%0A++++assert_eq!(into_iter.as_slice(),+%26%5B'b',+'c'%5D);%0A%7D&amp;edition=2021"></a></div>13 <span·class="macro">assert_eq!</span>(into_iter.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+vec+=+vec!%5B'a',+'b',+'c'%5D;%0A++++let+mut+into_iter+=+vec.into_iter();%0A++++assert_eq!(into_iter.as_slice(),+%26%5B'a',+'b',+'c'%5D);%0A++++let+_+=+into_iter.next().unwrap();%0A++++assert_eq!(into_iter.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.as_mut_slice"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../../src/alloc/vec/into_iter.rs.html#101-103">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_mut_slice"·class="fn">as_mut_slice</a>(&amp;mut·self)·-&gt;·&amp;mut·<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·mutable·slice.</p>14 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_mut_slice"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../../src/alloc/vec/into_iter.rs.html#101-103">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_mut_slice"·class="fn">as_mut_slice</a>(&amp;mut·self)·-&gt;·&amp;mut·<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Returns·the·remaining·items·of·this·iterator·as·a·mutable·slice.</p>
15 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>15 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
16 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>vec·=·<span·class="macro">vec!</span>[<span·class="string">'a'</span>,·<span·class="string">'b'</span>,·<span·class="string">'c'</span>];16 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>vec·=·<span·class="macro">vec!</span>[<span·class="string">'a'</span>,·<span·class="string">'b'</span>,·<span·class="string">'c'</span>];
17 <span·class="kw">let·</span><span·class="kw-2">mut·</span>into_iter·=·vec.into_iter();17 <span·class="kw">let·</span><span·class="kw-2">mut·</span>into_iter·=·vec.into_iter();
18 <span·class="macro">assert_eq!</span>(into_iter.as_slice(),·<span·class="kw-2">&amp;</span>[<span·class="string">'a'</span>,·<span·class="string">'b'</span>,·<span·class="string">'c'</span>]);18 <span·class="macro">assert_eq!</span>(into_iter.as_slice(),·<span·class="kw-2">&amp;</span>[<span·class="string">'a'</span>,·<span·class="string">'b'</span>,·<span·class="string">'c'</span>]);
19 into_iter.as_mut_slice()[<span·class="number">2</span>]·=·<span·class="string">'z'</span>;19 into_iter.as_mut_slice()[<span·class="number">2</span>]·=·<span·class="string">'z'</span>;
20 <span·class="macro">assert_eq!</span>(into_iter.next().unwrap(),·<span·class="string">'a'</span>);20 <span·class="macro">assert_eq!</span>(into_iter.next().unwrap(),·<span·class="string">'a'</span>);
21 <span·class="macro">assert_eq!</span>(into_iter.next().unwrap(),·<span·class="string">'b'</span>);21 <span·class="macro">assert_eq!</span>(into_iter.next().unwrap(),·<span·class="string">'b'</span>);
22 <span·class="macro">assert_eq!</span>(into_iter.next().unwrap(),·<span·class="string">'z'</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+vec+=+vec!%5B'a',+'b',+'c'%5D;%0A++++let+mut+into_iter+=+vec.into_iter();%0A++++assert_eq!(into_iter.as_slice(),+%26%5B'a',+'b',+'c'%5D);%0A++++into_iter.as_mut_slice()%5B2%5D+=+'z';%0A++++assert_eq!(into_iter.next().unwrap(),+'a');%0A++++assert_eq!(into_iter.next().unwrap(),+'b');%0A++++assert_eq!(into_iter.next().unwrap(),+'z');%0A%7D&amp;edition=2021"></a></div>22 <span·class="macro">assert_eq!</span>(into_iter.next().unwrap(),·<span·class="string">'z'</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+vec+=+vec!%5B'a',+'b',+'c'%5D;%0A++++let+mut+into_iter+=+vec.into_iter();%0A++++assert_eq!(into_iter.as_slice(),+%26%5B'a',+'b',+'c'%5D);%0A++++into_iter.as_mut_slice()%5B2%5D+=+'z';%0A++++assert_eq!(into_iter.next().unwrap(),+'a');%0A++++assert_eq!(into_iter.next().unwrap(),+'b');%0A++++assert_eq!(into_iter.next().unwrap(),+'z');%0A%7D&amp;edition=2021"></a></div>
23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.allocator"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/into_iter.rs.html#108-110">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>23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.allocator"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/into_iter.rs.html#108-110">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.83.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>
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-AsRef%3C%5BT%5D%3E-for-IntoIter%3CT,+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/into_iter.rs.html#192-196">source</a></span><a·href="#impl-AsRef%3C%5BT%5D%3E-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>&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.IntoIter.html"·title="struct·alloc::vec::IntoIter">IntoIter</a>&[·...·truncated·by·diffoscope;·len:·4892,·SHA:·09bd8b27f4c10de1266820850bcdccb050fbf4e1deabeaaf3954c855d73f554e·...·]/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::vec::IntoIter">IntoIter</a>&lt;T,·A&gt;<div·class="where">where24 </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-IntoIter%3CT,+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/into_iter.rs.html#192-196">source</a></span><a·href="#impl-AsRef%3C%5BT%5D%3E-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>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html">[T]</a>&gt;·for·<a·class="struct"·href="struct.IntoIter.h[·...·truncated·by·diffoscope;·len:·5243,·SHA:·686194a12c1d4b8ffb400392061e85d93d2e2c40e921133a6c026c3284c7376b·...·]/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·alloc::vec::IntoIter">IntoIter</a>&lt;T,·A&gt;<div·class="where">where
25 ····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>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.default"·class="method·trait-impl"><a·cla[·...·truncated·by·diffoscope;·len:·169,·SHA:·4af9628747cd6b74f29a37850bea59c74f24f35561b3f29aa1ed145d425acf91·...·]/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::IntoIter</code>.</p>25 ····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.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.default"·class[·...·truncated·by·diffoscope;·len:·223,·SHA:·90af49c4e33e70ff115c684f424c39abd784c1300c8b6b9ee766a35f8770df25·...·]/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::IntoIter</code>.</p>
  
26 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·vec::IntoIter&lt;u8&gt;·=·Default::default();26 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·vec::IntoIter&lt;u8&gt;·=·Default::default();
27 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);27 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);
28 <span·class="macro">assert_eq!</span>(iter.as_slice(),·<span·class="kw-2">&amp;</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::vec;%0A++++let+iter:+vec::IntoIter%3Cu8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A++++assert_eq!(iter.as_slice(),+%26%5B%5D);%0A%7D&amp;edition=2021"></a></div>28 <span·class="macro">assert_eq!</span>(iter.as_slice(),·<span·class="kw-2">&amp;</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::vec;%0A++++let+iter:+vec::IntoIter%3Cu8%3E+=+Default::default();%0A++++assert_eq!(iter.len(),+0);%0A++++assert_eq!(iter.as_slice(),+%26%5B%5D);%0A%7D&amp;edition=2021"></a></div>
29 </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/vec/into_iter.rs.html#369-410">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>&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.IntoIter.html"·title="struct·alloc::vec::IntoIter">IntoIter</[·...·truncated·by·diffoscope;·len:·3699,·SHA:·f652e0592aab457af57237945497d2c02e91fb657d6d606a8f9b4b88354490d6·...·]/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">where29 </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/vec/into_iter.rs.html#369-410">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>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.IntoIter.html"·title="struct·alloc[·...·truncated·by·diffoscope;·len:·4212,·SHA:·9d11d7cf770191f6102ba91e24b408cc8739c59f78995f19df56cbbc60b3f541·...·]/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
30 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,31 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes32 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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">where33 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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
34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
35 ····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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where36 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
37 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
38 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·10689,·SHA:·115d23bef822bea79a0086206d42175d399bbced98aff85576a475bd5b067153·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·accum:·B,·f:·F)·-&gt;·B<div·class="where">where38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·11823,·SHA:·dbf5a6f205faddb3f6ec794a937b5a3cbb5abd62bc068c59ea23e1b844dadb3d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·accum:·B,·f:·F)·-&gt;·B<div·class="where">where
39 ····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,39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
40 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/vec/int[·...·truncated·by·diffoscope;·len:·122,·SHA:·7b552887562d97110da0302d7d7a6d19fe543671a0da0f49bb3d94a0af3aa7d8·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·accum:·B,·f:·F)·-&gt;·R<div·class="where">where40 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·176,·SHA:·1d488a0215411dc7643ad7209d1731289beea31968ef6a2ebd7994da56897913·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·accum:·B,·f:·F)·-&gt;·R<div·class="where">where
41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····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,42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
43 ····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·returns43 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
44 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"><span·class="rightside"><span·class="since"·title="Sta[·...·truncated·by·diffoscope;·len:·461,·SHA:·4eb8eb49bb33c4895716fc322b03056a6b3877eb2790cf6f621a77b11dcb5739·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where44 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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"><span·class="rightside"><sp[·...·truncated·by·diffoscope;·len:·596,·SHA:·a2160810c3375d00c523c143c9ab3591e15d14f380947d318670035b10169d54·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
45 ····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:·1656,·SHA:·a2ff70a88bbd1de7e0a7da443dfd10d7f1637e2cbd35e8403bb1498c436f36b7·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·1980,·SHA:·99cdd63087b4984390ada425a6b96430655b944147ef841277290827e2466671·...·]/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
46 ····Self:·<a·class="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·by46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·by
47 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where47 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&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="https://doc.rust-lang.org/1.83.0/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>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where49 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
50 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where51 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>53 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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>
54 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
57 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
59 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·element61 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
66 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
71 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
78 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
80 ····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,·but80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
83 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,83 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
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::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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">where84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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
85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····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>·over86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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
87 <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>,87 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.83.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
88 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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where88 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
89 ····Self:·<a·class="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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<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="https://doc.rust-lang.org/1.83.0/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>(&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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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
92 ····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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
93 ····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;,93 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
94 ····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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
95 ····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;,95 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
97 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····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;,98 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
99 ····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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
100 ····T:·'a,100 ····T:·'a,
101 ····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;,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
102 ····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,102 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.103 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
104 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where104 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
106 ····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,106 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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 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:·d5126ad922d22b11df569bcedd40ea1cb0c9e317f047f58c89ce85c324f3778d·...·]/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">where107 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.83.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:·e3d897d44df3dae7ac7124bbc28956b2162c6cb742072d9f945cc178f70aeae6·...·]/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
108 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
109 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
110 ····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·the110 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
111 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:·2b096dde994cfe56c8d19079db1c165d5a3bf7b9952c836db68d378ef764adea·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where111 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·55da9d2eafc5b29aede623a11a0bd0fd119d24fed5bbdee7540356cdb8aeefc9·...·]/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="https://doc.rust-lang.org/1.83.0/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>(Self::<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·reducing113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(114 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,116 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where117 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,119 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the120 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
122 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,122 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
123 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
124 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,124 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
125 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 148176/335182 bytes (44.21%) of diff not shown.
312 KB
./usr/share/doc/rust-doc/html/alloc/vec/struct.Splice.html
    
Offset 1, 227 lines modifiedOffset 1, 227 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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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>1 <!DOCTYPE·html><html·lang="en"><head><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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-545097bd80942bc8.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.83.0"·data-rustdoc-version="1.83.0·(90b35a623·2024-11-26)·(built·from·a·source·tarball)"·data-channel="1.83.0"·data-search-js="search-f0d225181b97f9a4.js"·data-settings-js="settings-805db61a62df4bd2.js"·><script·src="../../static.files/storage-1d39b6787ed640ff.js"></script><script·defer·src="sidebar-items1.83.0.js"></script><script·defer·src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.83.0</span></h2></div><div·class="version">(90b35a623» 2024-11-26)»      (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.83.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>
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="../../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="https://doc.rust-lang.org/1.83.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">where
9 ····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:·348c17ba577724a3130b85201a9ca3196e3582b90146aa6c8baf907c563d139e·...·]/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="https://doc.rust-lang.org/1.83.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:·8b8a7487a3b6e557089eb7aa8a92c5daab837f6f3827e2e2aa48ad3795884922·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,11 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·takes12 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·a416ea84421fa7e1351582da48235bac88380a337ec5cb5a9239dc7d57908b4b·...·]/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="../../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:·04065e5a01cb9126e45d5f5ef64dca55ff06108f27c20f27b2e07c66ca6eebce·...·]/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="https://doc.rust-lang.org/1.83.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:·8ad770558c135db8463ade6b8f3d3d998513779dadda332e17b71f73094fd176·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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,15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·116ce49cf601b694e404b4b21822299e852d738d0da85bfd71fe8a9e9df1e0f5·...·]/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="https://doc.rust-lang.org/1.83.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:·ef72bf2b3c6fcb2a48a1ff0a635165124ba5ab28c36995b056757bba433a1080·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·5460ffbc7c97ff81209f02232c5423d03772fc89be4ee5ecb91aa8baa867d8dd·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·9430,·SHA:·91e970e06dfbbca4e6cdf84f8b0638f02f88180bea6201783b93f9d5dc9d7dc1·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self,19 ····&amp;mut·self,
20 )·-&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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·a91ed45ba08b467cea86c6d5bbac59b30c73dc1b9f7236367284bce75c9732bb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·aacc34f5b02a40bfe6cd5ada282125ce2419eabe3a5646b6e462bb7770150575·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·158005e1b4e2df89f418abda32023b5679e14eeece2e9d1758544f25c4ad4253·...·]/core/primitive.usize.html">usize</a><div·class="where">where
22 ····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:·2bc9d5ecd3b5d7bdad7bb75ed6c3727abdfc939e6b7c9e000b03c1dd7b65d79d·...·]/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="https://doc.rust-lang.org/1.83.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:·f84bf104eb598167c73c4c6313329597720ec7d49c2eee04935855e1623be85f·...·]/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="../../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:·e0f3702298ca0fb2b8b67dcd16f69d8a6f8a0868c443c9cddfb806206a66e2e0·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6b70b07b7d4503d4e53e83869579aac649a4318aedaba4987afa4aa897322d8c·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·by
25 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:·3b0a2b84eed8325bcdf41e769e514ec12d5a07f2b80c5eef9d6132c9d9792ee5·...·]/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="https://doc.rust-lang.org/1.83.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:·0df31fb148b5ef8ee0fc28008f0006d866bb202b52e90df9a023078699c7afb2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
27 ····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:·3a7c944df954a1254ab0cff62e79452cb36ea2dc4c95dd0754a7b562e58e3e82·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·a2f438def4d213887e6cfa555d5e681704d72d75bd851337a18744024b9d95ff·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
29 ····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:·559,·SHA:·579501f50104d5f63d3f7e68196faa8e38bd7684f3130105a07a2fc735aa595a·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where29 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·694,·SHA:·1301e5a74655833f07188bf2fcd91962e7ec292fc23b9ecc3553b51be461232d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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>31 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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 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:·d454f4aba5563ceef3fab6b7ab4c43a989ef9f9b77a287aaeda3475fd716325f·...·]/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="https://doc.rust-lang.org/1.83.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:·5615dc571c3b2e9d2f8d63bda8b1820f38ddfc7b951a8a325db5d508ecebebbd·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,33 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
34 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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·each34 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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·each
35 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:·f58bc57b14ac622677284e25c89c0c5eb770201ba9ac0f151d811733e494035f·...·]/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="https://doc.rust-lang.org/1.83.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:·6a2f08c25cb79a3a4889bbc21d3e3b33eb7fca68354f2a26de97a5b4de924836·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·585d288f5e16b8a77cd53ecb72bcd8da2dbe726d18ef21a914e3845fcc950be9·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·8af10bc1697649b667d5460194e729fcc54691349ca5075f9f85c055444f763d·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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::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·element39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·d948ee44e8a331f6886d592ec9b1e695e470eff28452deb6871b21696f6362ea·...·]/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="../../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:·689caea091d2c469ca17728f9be161490eb9537e701d381db395cb216cea63fc·...·]/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="https://doc.rust-lang.org/1.83.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:·15f3b0270879a9c6911aaf277f3d96c94619e93422190638066915189af232cb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·b3adff59ddac52ce31901721455032428fdf29ee6708bc1c9f09fa744bdca947·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·48de3df9f940cde765354284948f728c5463af530d6b4a6b714debd2df8ed7e3·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·as
44 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:·6650b590b80f638729011c65c3341057a3de598bda94b2baf0b8eafa3990854e·...·]/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="https://doc.rust-lang.org/1.83.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:·e667e758fc700363b5b1e899588247f6d37cb76948f2af4ea2138e29969a57e8·...·]/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="../../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>·methods45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·7f8887f74e7a87190602e40657dafab1084784ed10e14f23dd95d0d55bbb9653·...·]/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="../../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:·45751d67a38bc24f9e5f7f81390bc627d788ee7a1e0b232edf51974fb4dd41ef·...·]/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="https://doc.rust-lang.org/1.83.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:·e2af003a12972d7527eab8e44420742f3d0914f8ee2054d91598129fc60324d6·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
49 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·734d99a6f3adeaf4f45854869b93e75082ba9bee4fd988f348e5338c5cf92fdb·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·96720eb95af3488ba357435ffd5acb6a931122432e8dd3e9d96824a3396d6d63·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,50 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
51 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·fb405ce123c5ebbdec5c5053bcd5099f33e41f594c0f26c3f80bc57381afe150·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·55b332a39b8ad567f8888165364b84b76baef1ca585acec33fca05ee6d51a2c0·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
53 ····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:·db1606342d8fa537923812d3e4166b3c0bb183ede70c62394dd18e6a9fd9396d·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5ad451167deb9e6649a0933c4d212aac7048cfc042cbbe3d2576d6ef2bc20b0c·...·]/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="../../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:·145e8e2ac3e7c6005b1960c6d6de7b2f3eba28cc511607c68cffb632353ebcb8·...·]/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="https://doc.rust-lang.org/1.83.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:·18b99f8d1d9bbff700eb5f34573e15f6a94ff14465cf5938e592856f53633952·...·]/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="../../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="https://doc.rust-lang.org/1.83.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·fewer
56 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:·e846e69bf44c0f1a127fb60bd447fa749dce25d47cdc30e912eeeb7566e67683·...·]/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="https://doc.rust-lang.org/1.83.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:·c454b3fcb305a388887aa5a2a1e5a1951fe88444345781ac5052a2ea1762c98e·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
58 ····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,·but58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·a5e0df0f293fb853810577ae310a9735a76239c34fa7a8b84b7bc1f99e8812f7·...·]/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="../../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:·e175e3e82da9a8136048fb495ec44210e5b8d225975b317362ddeffa0b97955d·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·735f0474fba154c643c5f690746b28ad1f0c1bb1dcd749cbce48c6376005ba2b·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,61 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
62 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·92a246d5f4445dc928555860f6397429ae2b869919a55023442c3ad303e490f7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·4016475a46617df74b8850d7fd19b7c70ff56bcca92db7f22d52e2653abc4d25·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
64 ····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>·over64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·836c889704dcdb184786b76fb539a7ce969cf103fd95721dc18e5f1b51af61f1·...·]/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="../../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="https://doc.rust-lang.org/1.83.0/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="../../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:·61aa22b17dcf1dcd2011df94d197c8f6c8656b71ce77ad441eb46723f3251a5f·...·]/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="https://doc.rust-lang.org/1.83.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:·8fc2953a38489ab50996dd1ab500c321d34f1a175c5b5df86094ad450df58e9e·...·]/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="../../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:·827b4cdf87cbab2b834e7b13ee160a05c6bddfe4f15f5599f460f81b71106a4c·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·96927127f485070a3ca297929ac85b0f2fdcdd8fc904c28c0ca031599f41bba5·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
69 ····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:·7d0c629d1bffa1a536e5b68e1e4f2606a3eb403a6b945e1aa2b0d5d261c43fdd·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·770,·SHA:·81fa0c0c5d6775fe4f339b8a9970b2638be7456e8cc6c714e1e3b2f954a3a162·...·]/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="../../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:·e1f8329bbd4e69a6e7e2b4bb851d0438d7be311b4db5793dce7f46e73080c4f3·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·ac0488f0d726faab89ffdfa145841e5cb8792903d89664d589551e7808f11063·...·]/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="../../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 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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:·566,·SHA:·44a692366b9abca4e7a59ca1fb189bb1b223f8d39fd8baab9e5250dfd6068832·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·4fadc80b9cdb8adee5f5131b6ddd6feb7724169503a61aa96da250d7cf105cca·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
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;,73 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·d6106195d5495aabefc0f7790d9328889fd8679718a89dfa6b329e4f01b8ff46·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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:·33f497f0f5d87969f2d9aebbdc54144472a6fac52841ad97bcfec12ee0e15a6c·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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="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;,76 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·9a481da698dc2d5af83ac61d28e559516b8698f4663e454fe1e3ce26a593da32·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·33dd7f5ccbe3465a692299ddda17f9a604cd00073f4d6618c132e1511c0d5a25·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·714985e8f7b306010058f4ee610dbe541b06a2717cb46311a3719ce4c8aba4ee·...·]/core/primitive.usize.html">usize</a><div·class="where">where
78 ····T:·'a,78 ····T:·'a,
79 ····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;,79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·4ce0ae7e651f5e7d28f4b56684f5d891b326e74dca0889570b0d547339ad5685·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
80 ····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,80 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·b1625de2b0d0855b7f53deb58d7ac1f3ff44575e6f46cbae538783188d2b4143·...·]/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,
81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.81 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
82 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:·37b42f9638b0d30f64935a5d0b29a5b81ad228af42a00a3ee33048d26399bb8a·...·]/core/primitive.bool.html">bool</a><div·class="where">where82 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.83.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:·9b23d405e1a27b21257c33aec98e88c7325416c9d405d16a45da0413f82490e6·...·]/core/primitive.bool.html">bool</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
84 ····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,84 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/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,
85 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:·53505a988b3c195709df400073edc8c9e5ee132d8e0e2c794f78d065a543a7bb·...·]/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">where85 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.83.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:·5d024b2e82a2bc25fee7296f530b5180a3044469416aec77ee1634aebf844363·...·]/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
86 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
87 ····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,87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·returns88 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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·returns
89 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:·f06b8c1c59524cef0a0635e48d373de5039fe71e99917cafd19f992ae9c46521·...·]/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">where89 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.83.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:·8b8bd51d36f7cf7bca2d847741c7d164620d261db4b86536ff93fa0aed556130·...·]/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
90 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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;·R,91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
92 ····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·the92 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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·the
93 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:·05458fcf0c9db7ebc3fcd99f30fdc48ef3c2cd4db3cea3a124007402b97cde95·...·]/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">where93 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.83.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:·8624b6019c480e2fe45f14a12e40eff6118cc7bc8e6fbcd0f532d912f24a4970·...·]/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
94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.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,
96 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:·ba453757d87f3a25b57c758cf1d6a3eab68a4eb5b9a4568c1dac573bdc9604fc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where96 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.83.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:·c8a1f912a62d3038d7e12383934382f7b3ed799a017e20cd0724495078ad4fc2·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·reducing98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·74b80e85d2adba4003732c354be531cbf12edd726c19b4611d6262d11d9ed380·...·]/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="../../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:·8886d0af7ed4e07e858aee51b3ec71050d3efca36b44f52c516c17d35977058e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.83.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:·4064aef057a65880f7dbb72e8bacdae28db22b41bd0aaae6cbec441eeee00c27·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·ae57a080d51fc22b8fb1907521592eb20a81a423a402b2980059b7722c349870·...·]/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="../../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:·565,·SHA:·7755f6486030cd11aaf3f6f5ea14549b94216c0c4f1e8efc94f333a6789dce7e·...·]/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="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·47472b59b29793115a264ad48a3aa7b3af92c4d0ed87e9aba9f0db1dabe2aeaa·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,103 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/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="../../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·the105 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·3b19212f961db68b17af7c074a10a4edc3249b7cd1a0aaa5a58a87a586d03269·...·]/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="https://doc.rust-lang.org/1.83.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:·b92a7c2a9aeac1f427bbde9bfec70f409d3afb4cad2e85d54759d2b681103233·...·]/core/primitive.bool.html">bool</a><div·class="where">where
107 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,107 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·truncated·by·diffoscope;·len:·829,·SHA:·61aad683cd916796d13907b4629a74ade131d1fb3c60cd08fc497d6fa8780d54·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·ffb723f39e40063c0b411a6f68c609aed3d3c74516bee3307dad5db9f0ac42fe·...·]/core/primitive.bool.html">bool</a><div·class="where">where
109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/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>(Self::<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:·1fed2ae24955936513f7237a89a01152110683d40c8ea58ee4a3a4dfc7a1c849·...·]/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="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·55355ead1f0e1a256ea42713f45f88393bf51caa0068b994354aaaf4f5fffeeb·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
112 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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:·b85038e2e5997a77c62df2096689ae9137d08b3caeebd876f7c3f722e297e91d·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where112 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·475d53d6c083797478725c063575e0d30c7e71c8b93f4da02c9c456c6c6815c7·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,113 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::[·...·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·returns114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·ae02e53ef5d8d6499505866568f97797c151b8dc4b32e8a8385c62b39f2b6da8·...·]/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="../../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:·ef091fa6bbe2b156549a79c59f3ea230d4d849d829ff13da74dd84f2cecd0c54·...·]/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="https://doc.rust-lang.org/1.83.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:·f9f4d1d5898d8e4d844dc29acbaf5da23304856d2cde938d672a30c5f2c22888·...·]/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="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::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,117 ····f:·impl·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.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="../../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">where118 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·bff6940fa4ed1f585cec44a1e10450c579d4b42cf0b9d721e68b58fb4709c591·...·]/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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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;,120 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.bool.html">bool</a>&gt;,
121 ····&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·returns121 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.83.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.83.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·f7e94941af159d7e1c7093a508053db5b34c687814d247c39671484637cd53b9·...·]/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="../../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:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where122 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.83.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:·d9e022c0bd2dbc7c45fe132c8d3a223f809a0b203319d726c0359c5daeaa96df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
124 ····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:·24b05508866a859ec0c505fb99ef85c0bb1b2a9030b237dfc0130a630e609609·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·205b81c21c3860edc1060f9606e0207e01bf8db79071a36aa9cc282bcd52f5df·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
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::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,125 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·97806a4c36b3bcdb560a1ae221e0fbe31e35a8763addeff1da454ddb1f531ce1·...·]/core/primitive.bool.html">bool</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/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·its126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.83.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·02f1be911664c4311e7424ec24702c96b3298d5a3dd7e07caba2cce9ca360f44·...·]/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
127 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_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·tit[·...·truncated·by·diffoscope;·len:·506,·SHA:·eaf5c99afa90e21d31018108d49e42add1f1dc2eebae523f4950b1dd365530d1·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where127 index.·<a·href="https://doc.rust-lang.org/1.83.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_by_key"·class="method·trait-impl"><span·class="rightsi[·...·truncated·by·diffoscope;·len:·641,·SHA:·a368dd0b7335fca488a03679f0f5a5e92cb3d3be8f8ef6f1674968376857351c·...·]/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; 82688/319239 bytes (25.90%) of diff not shown.
1.07 MB
./usr/share/doc/rust-doc/html/alloc/vec/struct.Vec.html
Max HTML report size reached
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.6 KB
./usr/share/doc/rust-doc/html/trait.impl/core/clone/trait.Clone.js
42.5 KB
js-beautify {}
Max HTML report size reached
16.5 KB
./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.Eq.js
16.4 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
51.9 KB
./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialEq.js
51.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
96.7 KB
./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.From.js
96.6 KB
js-beautify {}
Max HTML report size reached
8.22 KB
./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.TryFrom.js
8.08 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.08 KB
./usr/share/doc/rust-doc/html/trait.impl/core/error/trait.Error.js
8.95 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
68.0 KB
./usr/share/doc/rust-doc/html/trait.impl/core/marker/trait.Freeze.js
67.9 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.7 KB
js-beautify {}
Max HTML report size reached
6.99 KB
./usr/share/doc/rust-doc/html/trait.impl/core/marker/trait.StructuralPartialEq.js
6.83 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.7 KB
js-beautify {}
Max HTML report size reached
69.1 KB
./usr/share/doc/rust-doc/html/trait.impl/core/marker/trait.Unpin.js
69.0 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.5 KB
./usr/share/doc/rust-doc/html/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js
96.3 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